Borrar filtros
Borrar filtros

if statements concerning vectors

1 visualización (últimos 30 días)
Sameer
Sameer el 13 de Mayo de 2014
Respondida: Sean de Wolski el 13 de Mayo de 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???????

Respuestas (1)

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

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by