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

1 次查看(过去 30 天)
for m=1:M
for n=1:N
QRS_P(m,n)=QRS_Pulse_array{:,n};
end
end

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by