If statement error with less than OR greater than

조회 수: 2 (최근 30일)
Anastasia Zistatsis
Anastasia Zistatsis 2021년 2월 24일
답변: Walter Roberson 2021년 2월 24일
if lambda <= 0 | >= 2
error('value is not valid');
end
I keep getting an error on ">= 2", saying it is an invalud use of the operator.
Why is this and what can I do to fix it?
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2021년 2월 24일
if lambda <= 0 || lambda >= 2

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Embedded Coder Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by