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
 LabTalk Forum
 Normalize 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

tib

Switzerland
105 Posts

Posted - 10/28/2003 :  2:50:08 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi there,
I thought this would be a simple task but I couldn't find anything in the help and I'm tired of trial and error.
I have a matrix active. If I type
limit %C; (or %H which is obviously the same)
limit.ymax=
I get the maximum value.
And now I wanted to normalize it
%C=%C/limit.ymax
But this doesn't work.
However, when I type Matrix1=Matrix1/0.123 this works.
But in a script what to do?
Thanks, Tilman.


easwar

USA
1965 Posts

Posted - 10/28/2003 :  2:58:11 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Tilman,

Just use
%c/=limit.ymax
or
%h/=limit.ymax

Easwar
OriginLab.

Go to Top of Page

tib

Switzerland
105 Posts

Posted - 10/28/2003 :  3:07:28 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Easwar, many thanks!
Maybe you could add such an example in the next version of LabTalk Help?
I couldn't find anything useful when I searched for 'normalize'.
Then this really would be a helpful help file
Tilman.

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