can we store character in a matlab matrix

1 view (last 30 days)
for eg:
[a1, a2, a3]:=[1,0,0];
[b1, b2, b3]:=[1,6,0];
[c1, c2, c3]:=[6,0,0];
r1 := [a1, a2, a3];
r2:=[b1, b2, b3];
r3:=[c1, c2, c3];
m = [r1; r2; r3];
whether this is correct code, if not then kindly help me

Answers (1)

Guillaume
Guillaume on 28 Sep 2015
This is not correct code by a mile. As you've not explained what you're trying to do, as the title of your question does not appear to relate to the very incorrect code you've posted and as it's far from obvious what you're trying to do with that code it's not really possible to go any further.
I would recommend that you learn the basics of matlab. At the very least, follow the getting started tutorial.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!