How to convert the 1D matrix into 2D matrix?

26 次查看(过去 30 天)
I have 1D matrix.now I want to convert the 1D matrix into 2D matrix.can you give me the code to convert it?

采纳的回答

Birdman
Birdman 2018-2-8
编辑:Birdman 2018-2-8
By using reshape function:
A=randi([1 6],1,10); %demo data
reshape(A,2,[])

更多回答(0 个)

类别

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