Getting Vector of matrices output from a for loop

Getting Vector of matrices output from a for loop - Messaggi

#1 Pubblicato: 18/10/2012 00:38:37
farlanw

farlanw

0 apprezzamenti in 9 post.

Gruppo: 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) scaricato 1482 volta(e).
#2 Pubblicato: 18/10/2012 02:55:18
Radovan Omorjan

Radovan Omorjan

325 apprezzamenti e 1 disapprezzamenti in 2.052 post.

Gruppo: 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!"
  • Nuovi post
  • Nessun nuovo post