Giving a variable name from a vector

12 visualizaciones (últimos 30 días)
Alex Ter-Sarkissov
Alex Ter-Sarkissov el 5 de Nov. de 2011
I have a vector of values, e.g.
x = [1 2 3]
I want to create a list of variables with the names
alg1_oper_x(i)_par1 = zeros(n,1);
such that i takes values from the vector x. How can I do it? Is there some parsing involved?
thanks

Respuestas (1)

Walter Roberson
Walter Roberson el 6 de Nov. de 2011
Sorry, doing that is banned in 143 countries due to industry health and safety regulations [*]
[*] ... or at least should be.

Categorías

Más información sobre Import Data en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by