- #1
elbarto
- 33
- 0
Homework Statement
Hi,
Just wondering if someone could please steer me in the right dirrection for the correct syntax in matlab. I am trying to create a variable from an array of numbers and combine it with the letter k, to give me k1=[] k2=[] k3=[] etc. where [] is a 3x3 matracie
Homework Equations
The Attempt at a Solution
This isn't the problem I am working on but the solution to this would be a great help.
a=[1 3];
['k' int2str(a(2))]=[0 1 2;1 2 3;0 1 2]
? Error: An array for multiple LHS assignment cannot contain character string.
Trying to get this
k3 =
0 1 2
1 2 3
0 1 2
Thanks
Elbarto