Page 1 of 1

multiple data import with different size

Posted: Tue Jun 25, 2019 4:34 am
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

Re: multiple data import with different size

Posted: Wed Aug 07, 2019 10:33 pm
by Stefan Stoll

Code: Select all

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