Page 1 of 1

Exporting simulated data

Posted: Mon Jul 03, 2017 12:15 pm
by lkrishna
Hi,
I'm new to easyspin and matlab. My question is how do I export the simulated spectrum, as excel file, that was generated using esfit. My code is below:

[B,spc] = textread('Test_partial.txt','%f %f');
Exp.mwFreq = 9.48;
Exp.Range = [330 350];
Sys0.S = 3/2;
Sys0.g = 1.99;
Sys0.lw = [0 1];
Vary.g = 0.1;
Vary.lw = [0 0.7];

SimOpt.Method='perturb';
esfit('pepper',spc,Sys0,Vary,Exp);

Re: Exporting simulated data

Posted: Mon Jul 03, 2017 4:23 pm
by Stefan Stoll
Check out the corresponding section in the documentation.

Re: Exporting simulated data

Posted: Sun Jul 09, 2017 7:11 pm
by lkrishna
Hi Stefan
Thanks for your reply. When I save the data using the command below, only experimental data is saved.
data = [B(:) spc(:)];
xlswrite('myfile',data);
Not sure how to save simulated data?

Re: Exporting simulated data

Posted: Sun Jul 09, 2017 7:20 pm
by lkrishna
Hi!
I figured how to save simulated data. Thanks!

Re: Exporting simulated data

Posted: Mon Jul 10, 2017 4:54 pm
by Stefan Stoll
Great!

Re: Exporting simulated data

Posted: Sun Feb 10, 2019 9:26 pm
by supriyala
Excellent topic. Great information here. Thank you.