Hello.i have a vector that is: C=[1;1.0000;1.0000;1.0000]
how can i see if there is any approssimations?

 채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 26일

1 개 추천

C ~= round(C)
will return 1 for any position that is not an integer.
You may also want to try something like
fprintf('%.99g\n', C)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by