zero value of probability

1 回表示 (過去 30 日間)
reem
reem 2011 年 4 月 9 日
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);

回答 (2 件)

Paulo Silva
Paulo Silva 2011 年 4 月 9 日
if error==0
error=eps; %or maybe another low value like 1e-5
end
P(k,1)= (error/100);

Walter Roberson
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.

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by