MATLAB: Calling Out Matrix by Name w/ Index

  • Context: MATLAB 
  • Thread starter Thread starter Curl
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
Curl
Messages
756
Reaction score
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?
 
Physics news on Phys.org