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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Adding/Substracting Matrices
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

rezapaz

Germany
Posts

Posted - 06/28/2007 :  06:12:35 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

zachary_origin

China
Posts

Posted - 06/28/2007 :  8:59:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000