Why I get ans = logical 1

11 次查看(过去 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?

采纳的回答

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.

更多回答(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