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 ?

 Réponse acceptée

Walter Roberson
Walter Roberson le 7 Mai 2011

1 vote

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

2 commentaires

nsbd
nsbd le 7 Mai 2011
thank you very much
nsbd
nsbd le 7 Mai 2011
:)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Mathematics and Optimization dans Centre d'aide et File Exchange

Produits

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by