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
 LabTalk Forum
 fit a data range

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
vassilios_1 Posted - 12/02/2003 : 11:01:26 AM
:( I'm trying to fit a selected part of a function curve. Although I use nlsf.dataBegin and nlsf.dataEnd my script uses always the complete x-column --> so the fit result is total rubbish.
Here the code:

[EXECFIT]
nlsf.func$ = cubic;
nlsf.dataBegin= Fstart; //some start value for fitting
nlsf.dataEnd = Fend;
nlsf.xBegin = fxdata[1]; //some start value for plotting the fit
nlsf.xEnd = fxdata[2];
nlsf.cleanupfitdata();
nlsf.fitdata$ = Polyfit_TotMit;
nlsf.xmode = 4;
nlsf.funcx$ = Polyfit_PolyX; //dataset to store
nlsf.funccol$ = Polyfit_PolyY; //dataset to store fitted Y values
nlsf.iterate(20);
nlsf.makecurve(func); //dataset generated for the fitted curve


Has anyone an idea or working code?
Thanks! :)
2   L A T E S T    R E P L I E S    (Newest First)
vassilios_1 Posted - 12/02/2003 : 12:52:29 PM
All right! It solves the problem.
Thanks for your help!
Mike Buess Posted - 12/02/2003 : 12:18:05 PM
Try moving nlsf.cleanupfitdata() to the beginning of the script.

Mike Buess
Origin WebRing Member

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