Need clarity of this command
古いコメントを表示
I am having these commands
a = [697 770 852 941];
b = [1209 1336 1477];
%them later in code
f = [];
for c=1:4,
for r=1:3,
f = [ f [a(c);b(r)] ]; % WHAT IS function of this command
end
end
Plz explain this command
f = [ f [a(c);b(r)] ];
and what does this do
f = []; %does it make empty matrix
採用された回答
その他の回答 (1 件)
moonman
2011 年 10 月 8 日
0 投票
1 件のコメント
Fangjun Jiang
2011 年 10 月 8 日
Start f as [], just run the following one at a time to test it out.
f=[f [1;2]]
f=[f [3;4]]
f=[f [400;500]]
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!