[scilab-Users] Bug or restriction with matrices?
Samuel GOUGEON
Samuel.Gougeon at univ-lemans.fr
Fri Jun 5 12:08:16 CEST 2009
----- Message d'origine -----
De : Samuel GOUGEON
Date : 05/06/2009 12:04:
> .../...
> The "m" in the test1(m) prototype is a local copy of the expected
> argument.
> Then, when you run test1() without argument, no m matrix is copied
> (and a bit surprisingly, no error occurs). So, the m(5,1)=1 statement
> creates the m from scratch, as a minimal object, here a column of 5
> lines with 1 at the fifth one, and by default 0 on previous lines.
> In the test() definition, writing m(1,4)=1 will then display the 0 0
> 0 1
> line-vector instead.
Sorry, mistake: In the test*1(*) définition, writing m(1,4)=1; ..etc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20090605/5a76a001/attachment.htm>
More information about the users
mailing list