allocation of data, column by column

조회 수: 1 (최근 30일)
NAFTALI HERSCOVICI
NAFTALI HERSCOVICI 2021년 12월 24일
답변: NAFTALI HERSCOVICI 2021년 12월 25일
Hello,
I am reading several csv files, each having 2 columns (and X-column and Y-column) with an equal number of rows
I would like to assign this data to one matrix, something like the code below. It does not work. What am I missing?
Thanks
for i=1:3
A=xlsread(fln(i));
results(:,i)=A(:,2)
end
  댓글 수: 1
Jan
Jan 2021년 12월 25일
Please explain "It does not work" with any details. Di you get an error message? If so, which one?
What is the contents of "fln" or is this a function?

댓글을 달려면 로그인하십시오.

답변 (1개)

NAFTALI HERSCOVICI
NAFTALI HERSCOVICI 2021년 12월 25일
sorry, I just had a spelling error in the larger code that would give me the error . now it works just fine.
I appologize for the inconvenience

카테고리

Help CenterFile Exchange에서 Whos에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by