Exporting simulated data

General forum for EasySpin: questions, how to's, etc.
Post Reply
lkrishna
Newbie
Posts: 9
Joined: Sun Nov 15, 2015 7:14 pm

Exporting simulated data

Post 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);
Stefan Stoll
EasySpin Creator
Posts: 1047
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Exporting simulated data

Post by Stefan Stoll »

Check out the corresponding section in the documentation.
lkrishna
Newbie
Posts: 9
Joined: Sun Nov 15, 2015 7:14 pm

Re: Exporting simulated data

Post 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?
lkrishna
Newbie
Posts: 9
Joined: Sun Nov 15, 2015 7:14 pm

Re: Exporting simulated data

Post by lkrishna »

Hi!
I figured how to save simulated data. Thanks!
Stefan Stoll
EasySpin Creator
Posts: 1047
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Exporting simulated data

Post by Stefan Stoll »

Great!
supriyala
Newbie
Posts: 1
Joined: Sun Feb 10, 2019 9:20 pm
Contact:

Re: Exporting simulated data

Post by supriyala »

Excellent topic. Great information here. Thank you.
Post Reply