I am trying to save a data array in Scilab, I use the save ('diretum \ name', 'array') command, but at the time of using LOAD to reuse the array it always carries a variable Boolean, does anyone know where I'm wrong to use save?
I am trying to save a data array in Scilab, I use the save ('diretum \ name', 'array') command, but at the time of using LOAD to reuse the array it always carries a variable Boolean, does anyone know where I'm wrong to use save?
An example of how to make the load function work like this:
a=eye(2,2);
b=ones(a);
save('vals.dat',a,b);
clear a
clear b
load('vals.dat','a','b');
disp(a);
disp(b);
// to read the array
[x]=read(file-desc,m,n,[format])
[x]=read(file-desc,m,n,k,format)
To write an array you can use something like:
write(file-desc,a,[format])
write(file-desc,a,k,format)
//para colocar a matriz no arquivo
// e depois pode continuar com os procedimentos padrão como load...