change array into matrix

 采纳的回答

Mischa Kim
Mischa Kim 2014-2-1
编辑:Mischa Kim 2014-2-1
Use the reshape command.
b = reshape(a,2,2)

3 个评论

This is ok.. how it will generate multiple numbers.. and the numbers are arranged into rectangular grid
Is this another question or are you confirming that the command does what you need it to do?
if i have a array with 50 numbers how it will be converted into rectangular matrix

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by