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 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!