Is it possible generate and handle generated variable names?

Respuestas (2)

It is, but it is considered to be very bad programming practice.
It is better to create them as an array instead:
v(1) = 1;
v(2) = 2;
v(3) = 3;
This has the same effect, but is much more efficient and much easier to work with.

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Mayo de 2015

Respondida:

el 19 de Mayo de 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by