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
 Extraction of 1variable from consolidated report

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
sharapova Posted - 07/02/2015 : 05:27:30 AM
I am fitting multiple graphs to the same function and I get my results resumed in that so called consolidated report.

However since I have 4 fitting parameters whilst I'm only interested in one of them, is there a way to extract only my "x0" parameter ?? Maybe someone can write some lines of the corresponding labtalk script, so I would only have to copy/paste it in that labtalk window ! (I have no experience on labtalk at all)

Many thx in advanvce !!!
1   L A T E S T    R E P L I E S    (Newest First)
SeanMao Posted - 07/03/2015 : 05:37:19 AM
Hi,

After you performed the NLFit analysis and you already created a report sheet, you can run the following LabTalk script to extract the only parameter value x0 and its error in a new worksheet.

Note this code assumes you have only 4 parameters and x0 is the 2nd fitting parameters as listed in report sheet. You can modify it to fit your case:


// Directly copy and paste the code in Script Window to run
	getnlr iw:=__REPORT$ tr:=tt pn:=1;
	newbook "Results";
	wks.ncols=3;
	col(1)[L]$ = "Parameter";
	col(2)[L]$ = "Values";
	col(3)[L]$ = "SD";
	
	for ( int ii = 1; ii<=tt.nsets; ii ++)
	{
		col(1)[$(ii)]$ = tt.n$(4*ii-2)$;
		col(2)[$(ii)] = tt.p$(4*ii-2);
		col(3)[$(ii)] = tt.e$(4*ii-2);
	}


Give it a try and see how it turns out.

Regards!

Sean

OriginLab Tech. Service

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