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
 Origin Forum
 Slope

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
protobion Posted - 01/22/2005 : 03:00:32 AM
I am plotting Linear fits of data. I cannot find an option that allows me to get the slope of the linear plot.
Anyhelp here please?
Er, no Labview available.

Edited by - protobion on 01/22/2005 03:09:01 AM
4   L A T E S T    R E P L I E S    (Newest First)
protobion Posted - 01/23/2005 : 08:18:39 AM
Thanks again. I see how this button-script relation works now.
Mike Buess Posted - 01/23/2005 : 06:00:44 AM
Open Custom.ogs in notepad and replace the script under the [Main] section with your script. That section is run by the Custom Routine button on Origin's standard toolbar.

Mike Buess
Origin WebRing Member
protobion Posted - 01/23/2005 : 02:23:03 AM
Thanks a lot Mike. I can now do exactly what I wanted to. Is there any way to turn this into a convenient button?
Mike Buess Posted - 01/22/2005 : 07:40:44 AM
The Analysis->Fit Linear and Tools->Linear Fit menu commands print slope and intercept to the results log. Use the stat object to obtain those values programmatically.

>>Er, no Labview available.

That's OK. LabView is not required.

...You can add a text label to your graph showing the slope and intercept as follows.

1. With graph active run Analysis->Fit Linear.
2. Enter this LabTalk command in the script window...

label -s -sa "slope=$(stat.lr.b)\nintercept=$(stat.lr.a)";

That will create a text label that looks like this...

slope=<value of slope>
intercept=<value of intercept>

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 01/22/2005 12:07:28 PM

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