Azzera filtri
Azzera filtri

if

2 visualizzazioni (ultimi 30 giorni)
nsbd
nsbd il 7 Mag 2011
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 ?

Risposta accettata

Walter Roberson
Walter Roberson il 7 Mag 2011
ismember(F,[100,300,600])
  2 Commenti
nsbd
nsbd il 7 Mag 2011
thank you very much
nsbd
nsbd il 7 Mag 2011
:)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by