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

New to MATLAB?

To create numbered variables from a for loop

Asked by Marco

Marco (view profile)

on 21 Nov 2012
Accepted Answer by bym

bym (view profile)

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

Marco (view profile)

Products

1 Answer

Answer by bym

bym (view profile)

on 21 Nov 2012
Accepted answer

Don't

Please see this FAQ

0 Comments

bym

bym (view profile)

Contact us