For-Loop Algorithm
古いコメントを表示
Can anybody help me with this?
A = cell(10,1) %Cell Array with 10 Rows and 1 Column
B is another cell array with contents as such:- B = [1][2][3]
I wish to insert the content of B into A in such manner using for-loop: A = [1][2][3][1][2][3][1][2][3][1]
How do I achieve such result with for loop?
採用された回答
その他の回答 (1 件)
Jan
2011 年 12 月 2 日
0 投票
Hint: mod(1:10, 3)
I assume, this is a homework and do not post the full solution.
カテゴリ
ヘルプ センター および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!