The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Adding/Substracting Matrices

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
rezapaz Posted - 06/28/2007 : 06:12:35 AM
Origin Version (7.5Pro):
Operating System: XP

HI, I am using Origin quite long now, although I have never used the Script option. I have the following problem: I have two Matrices and want to creat a third one which is created by substracting the two others. How can I do this? With the option SetMatrixValues it did not work....

Thanks in advance

Reza
1   L A T E S T    R E P L I E S    (Newest First)
zachary_origin Posted - 06/28/2007 : 8:59:04 PM
directly use operator -/+

matrix m1;
matrix m2;
matrix m3;
//make sure they are in same dimensions
m3 = m2 - m1; //m2+m1;

Is that what you want?



Edited by - zachary_origin on 06/28/2007 9:00:14 PM

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000