Create a pattren to execute specfic commands

1 回表示 (過去 30 日間)
Mustahsan Majeed
Mustahsan Majeed 2014 年 10 月 6 日
回答済み: Stephen23 2014 年 10 月 6 日
Hi,
I am sorry sometimes its really hard to formulate a right question. However I will try.
I want to write something in which I can execute a pattren for the same thing.
For example:
I have following command:
B = [C{1,1} C{1,2} C{1,3} C{1,4} C{1,4} C{1,5}]
Can I write something like following:
B = [C{1,1} ..... C{1,5}]
If yes, could you plese tell me what would be the command?
Thanks, Mustahsan

採用された回答

Iain
Iain 2014 年 10 月 6 日
B = [C{1,1:5}];

その他の回答 (1 件)

Stephen23
Stephen23 2014 年 10 月 6 日

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by