MATLAB: How to create many different matrices, with a for-loop, and their their name to be Ai (A1,A2)
evil evalfor loopmultiple matrices
Greeting. I want to create something of that sort
for i=1:10 Ai =…. end
Sadly its not possible. Any suggestions? It would really help my project move up a lot, by saving tons of time
Best Answer
Don't do this. Never include an index in thename of a variable, because using indices is the direct way to use an index. Hiding indices in names of variables is a bad programming style and typical mistake of beginners. Therefore this topic is discussed frequently and exhaustively in the forum. See e.g.:
Best Answer