|
From: | Carolina Gama |
Subject: | save/load problem |
Date: | Sat, 27 Dec 2003 12:19:21 -0600 |
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=rand(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 = 6 numero de colunas? 6 col = 6 vivos = 0.20000 actual =
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 >> Could you help me with this problem?
Thanks,
Carolina Gama
|
[Prev in Thread] | Current Thread | [Next in Thread] |