if statements concerning vectors

"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???????

Risposte (1)

if probabilitiesWanted == 2
swtNPVProb(3:10) = nan
end

Richiesto:

il 13 Mag 2014

Risposto:

il 13 Mag 2014

Community Treasure Hunt

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

Start Hunting!

Translated by