Why I get ans = logical 1
    조회 수: 9 (최근 30일)
  
       이전 댓글 표시
    
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?
댓글 수: 0
채택된 답변
  Nora Khaled
      
 2020년 11월 22일
        in your last case you use else then put a condition. 
you should either use "elseif" or no condition.
추가 답변 (0개)
참고 항목
카테고리
				Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!