how to make a Mx1xN matrix to MxN

답변 (2개)

Fangjun Jiang
Fangjun Jiang 2011년 8월 29일

2 개 추천

a=rand(3,1,2);
b=reshape(a,3,2);
or
c=squeeze(a);
Florin Neacsu
Florin Neacsu 2011년 8월 29일

2 개 추천

Hi,
You can also try squeeze.
Regards, Florin

카테고리

도움말 센터File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

질문:

2011년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by