Getting Vector of matrices output from a for loop

Getting Vector of matrices output from a for loop - Messages

#1 Posted: 10/18/2012 12:38:37 AM
farlanw

farlanw

0 likes in 9 posts.

Group: 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 KiB) downloaded 42 time(s).
#2 Posted: 10/18/2012 2:55:18 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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!"
  • New Posts New Posts
  • No New Posts No New Posts