Page 1 of 1

Dimensions of return values from eprload and esfit

Posted: Tue Dec 22, 2015 1:08 am
by katarkon
The function eprload returns x and y values in different dimensions. The x values return as <1 x nPoints double> whereas y ones return as <nPoints x 1 double>. Moreover, esfit returns y values as <1 x nPoints double>, it makes certain inconvenience.

Re: Dimensions of return values from eprload and esfit

Posted: Tue Dec 22, 2015 7:28 am
by Matt Krzyaniak
That is a minor bug that will get fixed in the next update. In general EasySpin should output row vectors. One easy work around is to either force everything into a column or ensure everything is a row by using (:) such as:

Code: Select all

[x,y] = eprload;
% shift the data into column
x=x(:);
y=y(:);

% or force a row vector 
x=x(:).';
y=y(:).';


Re: Dimensions of return values from eprload and esfit

Posted: Tue Dec 22, 2015 11:48 pm
by katarkon
Thanks. I used reshape function to override this inconvenience.