zero value of probability
3 次查看(过去 30 天)
显示 更早的评论
After greeting and respect
please,anyone tell me how can I put this value not appear equal to
zero,this value must near from zero because it is compute
probability of error
P(k,1)= (error/100);
0 个评论
回答(2 个)
Paulo Silva
2011-4-9
if error==0
error=eps; %or maybe another low value like 1e-5
end
P(k,1)= (error/100);
0 个评论
Walter Roberson
2011-4-9
What data class is the array P, and what data class is your value "error" ?
Note by the way that error is the name of a built-in function, and using a variable of the same name is quite likely to result in problems.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!