Unable to perform assignment because the indices on the left side are not compatible with the size of the right side.

1 visualizzazione (ultimi 30 giorni)
fid = fopen('zaki_susu_preproc.txt','r'); %open file txt
C = textscan(fid,'%f%f%f%f');
fclose(fid);
YR = cell2mat(C); %ERROR
x1 = YR(:,2:2); %choose one column
fs = 250; %sampling freq
figure(1) %plot sinyal
plot(x1)
Unable to perform assignment because the indices on the left side
are not compatible with the size of the right side.
Error in cell2mat (line 46)
M(i,j) = C{i,j};
Error in coba1 (line 4)
YR = cell2mat(C);

Risposte (1)

Walter Roberson
Walter Roberson il 25 Set 2022
Error in cell2mat (line 46)
M(i,j) = C{i,j};
That line of code does not exist in Mathworks cell2mat, at least not in 2019 or later. What shows up for
which -all cell2mat

Categorie

Scopri di più su Data Type Conversion in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by