How to convert a vector to a matrix in Matlab?

1 view (last 30 days)
How to convert a vector to a matrix in Matlab?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 7 Jul 2015
a=[1 2 3 4 5 6 7 8 9]
reshape(a,3,3)

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!