Exporting Simulated Data

General forum for EasySpin: questions, how to's, etc.
Post Reply
eprenthusiast
Newbie
Posts: 2
Joined: Tue Jun 19, 2018 10:11 am

Exporting Simulated Data

Post by eprenthusiast »

Hello,

I have been having difficulty trying to export simulated EPR data from Matlab. When I use:

data = [B(:) spc(:)];
save('myfile.txt','data','-ascii');

or

eprsave('myfile',B,spc);

I receive an error message:

Undefined function or variable 'B'.

Any advice would be greatly appreciated. Thank you!
Matt Krzyaniak
EasySpin Guru
Posts: 155
Joined: Tue Jul 22, 2014 11:01 am
Location: Northwestern University

Re: Exporting Simulated Data

Post by Matt Krzyaniak »

B correspond to the abscissa of the simulation, most of the simulation functions provide both the x axis and the y axis as outputs, presumably spc if the y axis, so just change whatever you have the x axis output into.
eprenthusiast
Newbie
Posts: 2
Joined: Tue Jun 19, 2018 10:11 am

Re: Exporting Simulated Data

Post by eprenthusiast »

Got it! Thank you for the reply.
Post Reply