How to convert a vector to a matrix in Matlab?

5 views (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)

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!