That is weird. Your code in my Scilab 6.1 on Win 10, shows:

  "j=7; Nstep=18; k=126 j*Nstep=126"
  "j=8; Nstep=18; k=144 j*Nstep=144"

Regards,
Rafael

-----Original Message-----
From: users <[email protected]> On Behalf Of anna28
Sent: Thursday, October 29, 2020 4:08 PM
To: [email protected]
Subject: Re: [Scilab-users] for-loop error

Hello,
thanks for your answer.

About the "PS", in fact, in my script, the name is not "matrix"... I've 
simplified the name to report it in the post (with a not 'clever' name, 
actually).


About the answer itself, yes, all the elements have 20 characters.

The point is the following:
"
j=7; Nstep=18; k=126 j*Nstep=126
j=8; Nstep=18; k=-112 j*Nstep=-112"

Why does it make 8*18=-112?
The matrix would have the index 8*18=144 but clearly it doesn't the index 
-112....





--
Sent from: 
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
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