Page 1 of 1

Exporting Simulated Data

Posted: Wed Jun 20, 2018 9:07 am
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!

Re: Exporting Simulated Data

Posted: Wed Jun 20, 2018 10:12 am
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.

Re: Exporting Simulated Data

Posted: Fri Jun 22, 2018 11:52 am
by eprenthusiast
Got it! Thank you for the reply.