- #1
Curl
- 758
- 0
If I have a few matrices defined, say A1 A2 A3
I want to use a loop to call out these individually. I can't just do
for k=1:3
B(k) = funct( A(k) )+ etc...
end
since A(k) will call the kth element of "A" but what I want is to refer to the name of the matrix (by the number next to the letter A). So how do I call out a matrix by name in MATLAB using and index?
I want to use a loop to call out these individually. I can't just do
for k=1:3
B(k) = funct( A(k) )+ etc...
end
since A(k) will call the kth element of "A" but what I want is to refer to the name of the matrix (by the number next to the letter A). So how do I call out a matrix by name in MATLAB using and index?