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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by