From help-octave-request at bevo dot che dot wisc dot edu Sat Dec 27 14:43:12 2003 Subject: save/load problem From: "Carolina Gama" To: Date: Sat, 27 Dec 2003 12:19:21 -0600 This is a multi-part message in MIME format. ------=_NextPart_000_0066_01C3CCA6.97C4CB40 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0067_01C3CCA6.97C4CB40" ------=_NextPart_001_0067_01C3CCA6.97C4CB40 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi!! I have to do a work for school with gnu octave, and my teacher = didn't give us much help. I have a matrix called actual defined by: actual=3Drand(6,6)>0.8 , and I want to save it as a text document estado_inicial.txt, and after = read it from that location. I have been trying to use the save and load = functions and they are not working. I have also been searching the = octave site and the help option and the same error occurs. >> inic numero de linhas? 6 lin =3D 6 numero de colunas? 6 col =3D 6 vivos =3D 0.20000 actual =3D 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 1 >> global lin >> global col >> global actual >> save -ascii estado_inicial.txt actual warning: save: wrong type argument `bool matrix' warning: near line 5, column 1: >>> save ("-ascii", "estado_inicial.txt", "actual") >> load -force estado_inicial.txt actual error: load: failed to extract keyword specifying value type error: load: reading file estado_inicial.txt >> =20 Could you help me with this problem? Thanks, Carolina Gama carolina_gama at netcabo dot pt ------=_NextPart_001_0067_01C3CCA6.97C4CB40 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
    Hi!!
    I have to do a work for school with gnu octave, = and my=20 teacher didn't give us much help.
    I have a matrix called actual defined by:
 
actual=3Drand(6,6)>0.8
 
, and I want to save it as a text document = estado_inicial.txt, and=20 after read it from that location. I have been trying to use the save and = load=20 functions and they are not working. I have also been searching the = octave site=20 and the help option and the same error occurs.
 
>> inic
numero de linhas? 6
lin =3D 6
numero de = colunas?=20 6
col =3D 6
vivos =3D 0.20000
actual =3D
 
       =20 1       =20 0       =20 0       =20 1       =20 0       =20 0
       =20 0       =20 0       =20 0       =20 0       =20 0       =20 0
       =20 0       =20 0       =20 1       =20 0       =20 0       =20 0
       =20 0       =20 0       =20 0       =20 0       =20 1       =20 0
       =20 0       =20 0       =20 0       =20 0       =20 0       =20 0
       =20 0       =20 0       =20 0       =20 1       =20 1        1
 
>> global lin
>> global col
>> global=20 actual
>> save -ascii estado_inicial.txt actual
warning: = save: wrong=20 type argument `bool matrix'
warning: near line 5, column = 1:
 
>>> save ("-ascii", "estado_inicial.txt", = "actual")

>> load -force estado_inicial.txt actual
error: = load:=20 failed to extract keyword specifying value type
error: load: reading = file=20 estado_inicial.txt
>>       &= nbsp;           &n= bsp;           &nb= sp;           &nbs= p;      =20
 
    Could you help me with this problem?
    Thanks,
 
    Carolina Gama
    carolina_gama@netcabo dot pt ------=_NextPart_001_0067_01C3CCA6.97C4CB40-- ------=_NextPart_000_0066_01C3CCA6.97C4CB40 Content-Type: image/gif; name="Blank Bkgrd.gif" Content-Transfer-Encoding: base64 Content-ID: <006501c3cca6$97c1be00$0100a8c0 at carolina> R0lGODlhLQAtAID/AP////f39ywAAAAALQAtAEACcAxup8vtvxKQsFon6d02898pGkgiYoCm6sq2 7iqWcmzOsmeXeA7uPJd5CYdD2g9oPF58ygqz+XhCG9JpJGmlYrPXGlfr/Yo/VW45e7amp2tou/lW xo/zX513z+Vt+1n/tiX2pxP4NUhy2FM4xtjIUQAAOw== ------=_NextPart_000_0066_01C3CCA6.97C4CB40-- ------------------------------------------------------------- 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 -------------------------------------------------------------