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

3 vues (au cours des 30 derniers jours)
for m=1:M
for n=1:N
QRS_P(m,n)=QRS_Pulse_array{:,n};
end
end

Réponses (1)

KSSV
KSSV le 6 Mar 2018
QRS_P = cell(m,n) ;
for m=1:M
for n=1:N
QRS_P{m,n}=QRS_Pulse_array{:,n};
end
end

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by