i have a cell array and i want to reshape to matrix mxn and i have this error 'Subscripted assignment dimension mismatch'. for the following code
Ältere Kommentare anzeigen
for m=1:M
for n=1:N
QRS_P(m,n)=QRS_Pulse_array{:,n};
end
end
2 Kommentare
Pawel Jastrzebski
am 6 Mär. 2018
Why don't you use a Matlab in-build function instead?
yasmeen hadadd
am 6 Mär. 2018
Bearbeitet: yasmeen hadadd
am 6 Mär. 2018
Antworten (1)
KSSV
am 6 Mär. 2018
QRS_P = cell(m,n) ;
for m=1:M
for n=1:N
QRS_P{m,n}=QRS_Pulse_array{:,n};
end
end
1 Kommentar
yasmeen hadadd
am 6 Mär. 2018
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!