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
 Extraction of 1variable from consolidated report
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

sharapova

France
5 Posts

Posted - 07/02/2015 :  05:27:30 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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 !!!

SeanMao

China
288 Posts

Posted - 07/03/2015 :  05:37:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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