if statements concerning vectors

2 ビュー (過去 30 日間)
Sameer
Sameer 2014 年 5 月 13 日
回答済み: Sean de Wolski 2014 年 5 月 13 日
"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???????

回答 (1 件)

Sean de Wolski
Sean de Wolski 2014 年 5 月 13 日
if probabilitiesWanted == 2
swtNPVProb(3:10) = nan
end

カテゴリ

Help Center および File ExchangeNaNs についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by