Getting Vector of matrices output from a for loop

Getting Vector of matrices output from a for loop - 消息

#1 已发布: 2012/10/18 00:38:37
farlanw

farlanw

0个赞,共9个帖子。

组: 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)已下载 1497 次。
#2 已发布: 2012/10/18 02:55:18
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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!"
  • 有新帖
  • 无新帖