필터 지우기
필터 지우기

Why I get ans = logical 1

조회 수: 11 (최근 30일)
vincenzo violi
vincenzo violi 2020년 11월 22일
댓글: vincenzo violi 2020년 11월 22일
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일
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개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by