Hi everyone,
I am trying to take a value, and subtract a vector from it. I want to then take that answer to check if it is within plus or minus a value of 0.025. Is there a function built into matlab for this? If not, will anybody be able to help me put something together?

 채택된 답변

James Tursa
James Tursa 2018년 3월 5일

0 개 추천

Maybe something like this is what you need:
if( all(abs(your_value - your_vector) <= 0.25) )
% etc
end

추가 답변 (0개)

카테고리

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

질문:

2018년 3월 5일

답변:

2018년 3월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by