how to form matrix

2 views (last 30 days)
k vijaya bhaskar
k vijaya bhaskar on 20 Feb 2019
Answered: Walter Roberson on 20 Feb 2019
i am having the calculated values in elements m11, m12,m13,m21,m22,m23,,m31,m32,m34
now how can i display those values in matrix form as
m = [ m11 m12 m13
m21 m22 m23
m31 m32 m33];

Answers (2)

M
M on 20 Feb 2019
Edited: M on 20 Feb 2019
From this documentation:
Try:
m = [ m11 m12 m13;
m21 m22 m23;
m31 m32 m33];

Walter Roberson
Walter Roberson on 20 Feb 2019
reshape(mm,3,3).'

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!