MATLAB Answers

Marco

To create numbered variables from a for loop

Asked by Marco
on 21 Nov 2012
Accepted Answer by bym

Hi,

Is there a way to generate numbered variables by a for loop ?

For example, if I have:

for i = 1:4

How can I generate the variables:

A_1 
A_2
A_3
A_4           

(named automatically by for loop)

  0 Comments

1 Answer

bym
Answer by bym
on 21 Nov 2012
 Accepted answer

Don't

Please see this FAQ

  0 Comments


Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today