subtract very small value

조회 수: 4 (최근 30일)
Maro
Maro 2015년 5월 22일
답변: Star Strider 2015년 5월 22일
when I subtract a very value small from another value. the answer remain the same as if I did not subtract any value for example if I subtract 1.9512e-005 from 1.5 the answer is 1.5 ...how do I enforce the matlab to output the correct answer?

채택된 답변

Star Strider
Star Strider 2015년 5월 22일
Use the format function. You may want to use format longE.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by