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 ExchangeResizing 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