Why I get ans = logical 1
    10 views (last 30 days)
  
       Show older comments
    
    vincenzo violi
 on 22 Nov 2020
  
    
    
    
    
    Commented: vincenzo violi
 on 22 Nov 2020
            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 Comments
Accepted Answer
  Nora Khaled
      
 on 22 Nov 2020
        in your last case you use else then put a condition. 
you should either use "elseif" or no condition.
More Answers (0)
See Also
Categories
				Find more on Loops and Conditional Statements in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
