0
I’m having trouble saving a data matrix in Scilab, I use the save('name directory','matrix') command, but when it comes to using LOAD to reuse the matrix whenever it loads is a Boolean variable, does anyone know where I’m wrong when using save?
0
I’m having trouble saving a data matrix in Scilab, I use the save('name directory','matrix') command, but when it comes to using LOAD to reuse the matrix whenever it loads is a Boolean variable, does anyone know where I’m wrong when using save?
0
An example of how to make the load function work is 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 matrix
[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...
Browser other questions tagged scilab
You are not signed in. Login or sign up in order to post.
I think you will need to give more information about your code so that someone can answer your question.
– Victor Stafusa
Put your code and improve your question so I can help you better. I tried to put the basics in the answer but I don’t know if I could achieve the goal in helping you.
– Maurício Z.B