Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline farlanw  
#1 Posted : 18 October 2012 07:38:37(UTC)
farlanw

Rank: Newbie

Groups: Registered
Joined: 13/06/2012(UTC)
Posts: 9

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

Edited by user 18 October 2012 11:02:54(UTC)  | Reason: Not specified

File Attachment(s):
Vector of matrices.sm (9kb) downloaded 24 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline omorr  
#2 Posted : 18 October 2012 09:55:18(UTC)
omorr


Rank: Administration

Groups: Registered, Advanced Member
Joined: 23/06/2009(UTC)
Posts: 1,740
Man
Serbia

Was thanked: 318 time(s) in 268 post(s)
Hello Farlan,

Move this region T.g:matrix(n.mbr,1) 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
omorr attached the following image(s):
Vectorofmatrices.png
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.