multiple data import with different size

General forum for EasySpin: questions, how to's, etc.
Post Reply
YJkim
Newbie
Posts: 7
Joined: Thu Nov 12, 2015 6:15 pm
Location: Seoul, South Korea

multiple data import with different size

Post by YJkim »

Hello,
I want to import multiple pulsed EPR data with different size (1st file: 1*2001pt, 2nd file: 1*1501pt, etc...) using "for" syntax.

Code: Select all

[F,DR]= uigetfile('*.DTA','MultiSelect','on');
cd(DR);
[a,b]=size(F);
for i=1:b
[B(:,i),spc(:,i)] = eprload(F{1,i});
end
However, the 'eprload' function has not been available to import the data, with an error message. (see below)

"Unable to perform assignment because the size of the left side is 2001-by-1 and the size of the right side is 1501-by-1."

I will glad if you give such a bit of tiny advice.
Thank you in advance for your time.

With Regards,
Yujeong
Stefan Stoll
EasySpin Creator
Posts: 1050
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: multiple data import with different size

Post by Stefan Stoll »

Code: Select all

for i=1:b
  [B{i},spc{i}] = eprload(F{1,i});
end
Post Reply