Hi all,
"
for i=1:1000;
%event
F=(i+1);
if F == 100 300 ; % ????????????????
disp('hi all');
end
end
"
F=100 or 300 or 600 ..... disp('all') how I do ?

 채택된 답변

Walter Roberson
Walter Roberson 2011년 5월 7일

1 개 추천

ismember(F,[100,300,600])

댓글 수: 2

nsbd
nsbd 2011년 5월 7일
thank you very much
nsbd
nsbd 2011년 5월 7일
:)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by