Why I get ans = logical 1
5 ビュー (過去 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!