if(Tl > Tup && Tup<TRIS)
disp(Tup);
disp('Tup');
elseif (Tl>Tup && Tup > TRIS)
disp(TRIS);
disp('Tris');
else (Tl < Tup && Tl < TRIS)
disp(Tl);
disp('Tl');
end
Could anyone help me?

 채택된 답변

Nora Khaled
Nora Khaled 2020년 11월 22일

2 개 추천

in your last case you use else then put a condition.
you should either use "elseif" or no condition.

댓글 수: 1

vincenzo violi
vincenzo violi 2020년 11월 22일
Really thanks, it actually works well with your tips!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2020년 11월 22일

댓글:

2020년 11월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by