Getting Vector of matrices output from a for loop

Getting Vector of matrices output from a for loop - Poruke

#1 Objavljeno: 18. 10. 2012. 00:38:37
farlanw

farlanw

0 svidjanja u 9 postova.

Grupa: User

Hi,

I am puzzled why the attached code snippet does not appear to give me the desired vector of 2x2 matrices - the preview shows tha the loop has calculated the vector correctly , but when I check by printing the value of the holding variable, the values are all unchanged.

Can someone please clarify what is going on.

Thanks,

Farlan
Vector of matrices.sm (8,49 KiB) preuzeto 1524 put(ova).
#2 Objavljeno: 18. 10. 2012. 02:55:18
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Hello Farlan,

Move this region [MATH=eng]T.g:matrix(n.mbr,1)[/MATH] or delete it. It wil destroy your variable from the loop.
Afterwards, use symbolic equal to (CTRL+. or right arrow from the Arithmetic palette). See the picture please.

Regards,
Radovan

Vectorofmatrices.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Novi postovi
  • Nema novih postova