From help-octave-request at bevo dot che dot wisc dot edu Fri Dec 26 09:41:33 2003 Subject: save/load problem From: "Carolina Gama" To: Date: Fri, 26 Dec 2003 08:08:56 -0600 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C3CBBA.6DB96CD0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0006_01C3CBBA.6DB96CD0" ------=_NextPart_001_0006_01C3CBBA.6DB96CD0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi! I'm not used to work with gnu octave, and i have to do a school work. My = teacher didn't give much help and i'm having some trouble. In the work, we have a function that saves a matrix with a different = name as a text document. The function, the tecaher gave in the class was = something like this: function guarda_estado(nome_file) global estado_actual save ("-ascii",nome_file,"estado_actual"); endfunction I have a matrix called estado_actual and in the beginning i want to save = it as estado_inicial.txt and the go read it. For that, i also have a = function but it's not working either! function le_estado(nome-file) global estado_actual estado_actual=3D[]; load ("-force",nome_file,"estado_actual"); endfuction Could you help me with this problem? Thanks, Carolina Gama carolina_gama at netcabo dot pt ------=_NextPart_001_0006_01C3CBBA.6DB96CD0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi!
I'm not used to work with gnu octave, = and i=20 have to do a school work. My teacher didn't give much help and i'm = having some=20 trouble.
In the work, we have a function that saves a matrix with a = different=20 name as a text document. The function, the tecaher gave in the class was = something like this:

function=20 guarda_estado(nome_file)
    global=20 estado_actual
    save=20 ("-ascii",nome_file,"estado_actual");
endfunction

I have a = matrix=20 called estado_actual and in the beginning i want to save it as=20 estado_inicial.txt and the go read it. For that, i also have a function = but it's=20 not working either!

function = le_estado(nome-file)
   =20 global estado_actual
   =20 estado_actual=3D[];
    load=20 ("-force",nome_file,"estado_actual");
endfuction

Could you = help me=20 with this problem?
Thanks,

    Carolina=20 Gama
    carolina_gama at netcabo dot pt
------=_NextPart_001_0006_01C3CBBA.6DB96CD0-- ------=_NextPart_000_0005_01C3CBBA.6DB96CD0 Content-Type: image/gif; name="Blank Bkgrd.gif" Content-Transfer-Encoding: base64 Content-ID: <000401c3cbba$6db65f90$0100a8c0 at carolina> R0lGODlhLQAtAID/AP////f39ywAAAAALQAtAEACcAxup8vtvxKQsFon6d02898pGkgiYoCm6sq2 7iqWcmzOsmeXeA7uPJd5CYdD2g9oPF58ygqz+XhCG9JpJGmlYrPXGlfr/Yo/VW45e7amp2tou/lW xo/zX513z+Vt+1n/tiX2pxP4NUhy2FM4xtjIUQAAOw== ------=_NextPart_000_0005_01C3CBBA.6DB96CD0-- ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------