필터 지우기
필터 지우기

can anyone help me to fix the issue

조회 수: 1 (최근 30일)
Prabha Kumaresan
Prabha Kumaresan 2018년 4월 5일
편집: Birdman 2018년 4월 5일
code:
v=[1 2 3 4];
v=[5 6 7 8 9];
v=[10 11 12 13 14 15];
for v = [1 2 3 4]
disp(v)
end
In the above code could anyone help me how to display v=[1 2 3 4];
v=[5 6 7 8 9];
v=[10 11 12 13 14 15]; together using the same for loop.

채택된 답변

Birdman
Birdman 2018년 4월 5일
편집: Birdman 2018년 4월 5일
v={[1 2 3 4];[5 6 7 8 9];[10 11 12 13 14 15]};
for i=1:size(v,1)
v{i,:}
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by