if statements concerning vectors

3 views (last 30 days)
Sameer
Sameer on 13 May 2014
Answered: Sean de Wolski on 13 May 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???????

Answers (1)

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

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!