if

3 ビュー (過去 30 日間)
nsbd
nsbd 2011 年 5 月 7 日
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 日
ismember(F,[100,300,600])
  2 件のコメント
nsbd
nsbd 2011 年 5 月 7 日
thank you very much
nsbd
nsbd 2011 年 5 月 7 日
:)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by