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!