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

조회 수: 2 (최근 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