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
 Origin Forum
 Extract data from a 1024*1024 matrix
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

polimeros42

USA
Posts

Posted - 12/05/2005 :  12:12:34 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin): 6.0
Operating System:windows
Hello,
I have a 1024*1024 matrix and I need to delete the data= 0.
I have tried to go to Matrix, set values and enter the expresion:(Cell(i,j) == 0) ? NANUM : Cell(i, j)but it does not work, all data are cut.
I would greatly appreciate your help
Thank you
Rebeca


Mike Buess

USA
3037 Posts

Posted - 12/05/2005 :  12:32:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Rebecca,

You don't need to use the Set Values dialog. If the matrix is Matrix1 just enter the following command in the script window...

Matrix1 = Matrix1==0 ? NANUM : Matrix1;

Mike Buess
Origin WebRing Member
Go to Top of Page

polimeros42

USA
Posts

Posted - 12/05/2005 :  1:15:24 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
thank you Mike, that works!!
Rebeca
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