Inf problem
古いコメントを表示
I'm working on video, and have alot of computations in my processes. in one part i divide a number on another one, but I receive wrong result.
for example:
1.000000000000000e-03/ 1.000000000000000e-03+ 0
ans
=Inf
how can i handle this?
I use format short, but it doesn't help me.
please help
採用された回答
その他の回答 (1 件)
Walter Roberson
2011 年 8 月 1 日
Please copy the exact code that reproduces this on your system. It appears that the denominator on the division is becoming 0, which could perhaps happen due to the exact spacing you use.
Also, I suggest you try
format short g
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!