Giving a variable name from a vector

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

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 11 月 6 日

0 投票

Sorry, doing that is banned in 143 countries due to industry health and safety regulations [*]
[*] ... or at least should be.

カテゴリ

ヘルプ センター および File ExchangeImport Data についてさらに検索

タグ

質問済み:

2011 年 11 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by