hi

Maybe you should first explain what you would like to do ...

A is a matrix 151x3
x is a matrix 1x5

I do not understand the prupose of the loop????

Depending on what you are expecting for, a good solution will be found

Paul

----- Mail d'origine -----
De: fujimoto2005 <[email protected]>
À: [email protected]
Envoyé: Fri, 05 Jun 2015 12:36:58 +0200 (CEST)
Objet: [Scilab-users] for-loop does't work

I run the following script.
It works at 4th line
But It failes from 5th line to 7th line.
It seems to be right
Where is this script wrong?

*******************
A=zeros(151,3);
x=[0.0  5.0     10.0    15.0    19.0]
i=5
A(1,:)=x(i)
for i=1:5
    A(1,:)=x(i); 
end



--
View this message in context: 
http://mailinglists.scilab.org/for-loop-does-t-work-tp4032382.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to