Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To create numbered variables from a for loop

Asked by Marco on 21 Nov 2012

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

Marco

Products

1 Answer

Answer by bym on 21 Nov 2012
Accepted answer

Don't

Please see this FAQ

0 Comments

bym

Contact us