Convert 181*1 matrix to 181 times 1*1 matrix

Hi i have 181*1 Matrix and all elements are text. My question is do you know how to create 181 times 1*1 matrix in Workspace from this 181*1 Matrix ? because i want to use all These variables or elements in different equations!!
a=[velocity;mass;volume;acceleration....] which i Need is: [velocity] [mass] [voluem] [acceleration] as an variable thanx a lot

2 件のコメント

David Young
David Young 2015 年 1 月 22 日
Please don't do it! This would be a terrible solution. Just access the array elements using indexing.
Stephen23
Stephen23 2015 年 1 月 22 日
In case you really don't believe that this is a bad idea, here is a third person telling you:
Do not do this!
Learn to use MATLAB's quite powerful indexing abilities instead.

サインインしてコメントする。

 採用された回答

Image Analyst
Image Analyst 2015 年 1 月 22 日

1 投票

People think of this horrible idea so often that there is even a FAQ about it: http://matlab.wikia.com/wiki/FAQ#How_can_I_create_variables_A1.2C_A2.2C....2CA10_in_a_loop.3F

その他の回答 (1 件)

cemsi888
cemsi888 2015 年 1 月 22 日

0 投票

Thanx a lot Image Analyst

カテゴリ

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

質問済み:

2015 年 1 月 22 日

回答済み:

2015 年 1 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by