How to name variables automatically?

9 ビュー (過去 30 日間)
TEEH
TEEH 2016 年 5 月 29 日
回答済み: Image Analyst 2016 年 5 月 29 日
I have made a 3 D matrix. But i need to give each element of this matrix a name so that it can be inserted in the cell array as I need to SET UP a Linear Program .
Are there any ways through which I could name each element of matrix automatically like by running a loop
or
Some other method to Set up a linear program because number of variables are very very large.

回答 (1 件)

Image Analyst
Image Analyst 2016 年 5 月 29 日
I don't think you want to, or need to, do that, but see the FAQ: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by