Re: saving more than one variable in file




"Maha" <mayahgr@xxxxxxxxx> wrote in message
news:ef52060.-1@xxxxxxxxxxxxxxxxxxxxxxxxxx
I am trying to save more than one variable in my code into an ASCII
.txt file. I understand that if I were to save for example y below

y = [1 2 3 4; 5 6 7 8];

I would have to say

save y.txt y -ascii

what if I wanted to save more variables in the code to the same
file? I am able to rpint them in the command window but would like to
be able to analyse the data separately...

thanks in advance


Just list the variables?

a=2; b=3;
save foo.txt a b -ascii
!type foo.txt
2.0000000e+000
3.0000000e+000


hth
Nasser


.



Relevant Pages

  • Re: View Network Computers
    ... >> Result is on a Command window but never the less it has all the info I ... >> HTH - Any Advice Appreciated - Please Reply To Newsgroup Only ... >>> Copy the new file to your desktop, or create then copy a shortcut, to ...
    (microsoft.public.windowsxp.network_web)
  • Re: View Network Computers
    ... Result is on a Command window but never the less it has all the info I need ... HTH - Any Advice Appreciated - Please Reply To Newsgroup Only ... "Chuck" wrote in message ... > Copy the new file to your desktop, or create then copy a shortcut, to the ...
    (microsoft.public.windowsxp.network_web)
  • Running a "Silent" Defrag.exe command Window
    ... I have a script that calls defrag.exe to analyse the fragmentation ... At the moment the user sees the command window ... flash up. ...
    (microsoft.public.scripting.vbscript)
  • Re: solving nonlinear equation
    ... >> HTH, ... >> John D'Errico ... Nasser ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: solving nonlinear equation
    ... > HTH, ... > John D'Errico ... Nasser ... Prev by Date: ...
    (comp.soft-sys.matlab)