Problem in import several file and readtable and size

3 ビュー (過去 30 日間)
FSh
FSh 2019 年 6 月 15 日
コメント済み: Rik 2021 年 1 月 25 日
I have problem in this code
n_meas = 77;
for i=1:n_meas
[pixel, I(:,i)] = textread (['cell_', num2str(i),'.DAT'],'%f%f','headerlines' ,17);
[pixel, I0(:,i)] = textread (['nocell_', num2str(i),'.DAT'],'%f%f','headerlines' ,17);
end
=================
the error ...
Unable to perform assignment because the size of the left side is 1024-by-1 and the size of the right side is 1008-by-1.
  2 件のコメント
Guillaume
Guillaume 2019 年 6 月 15 日
There's no readtable in your code. You're using textread that has been deprecated for a long time.
I'm not sure what's unclear about the error message. You're expecting 1024 numbers, there are only 1008 in one of the files.
Rik
Rik 2021 年 1 月 25 日
Comment posted as flag by @FSh:
helpful inforamtion

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWorkspace Variables and MAT Files についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by