Effacer les filtres
Effacer les filtres

if statements concerning vectors

1 vue (au cours des 30 derniers jours)
Sameer
Sameer le 13 Mai 2014
"if only 2 probabilties are desired, then entries 3 to 10 of swtNPVProb (a 10X1 vector) should be set to NaN"
How do we do this in MATLAB???????

Réponses (1)

Sean de Wolski
Sean de Wolski le 13 Mai 2014
if probabilitiesWanted == 2
swtNPVProb(3:10) = nan
end

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by