how to make a Mx1xN matrix to MxN

4 次查看(过去 30 天)
zhang
zhang 2011-8-29
just as the title.
Thanks in advanced.

回答(2 个)

Fangjun Jiang
Fangjun Jiang 2011-8-29
a=rand(3,1,2);
b=reshape(a,3,2);
or
c=squeeze(a);

Florin Neacsu
Florin Neacsu 2011-8-29
Hi,
You can also try squeeze.
Regards, Florin

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by