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???????
回答(1 个)
Sean de Wolski
2014-5-13
if probabilitiesWanted == 2
swtNPVProb(3:10) = nan
end
类别
在 帮助中心 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!