Why I get ans = logical 1

37 ビュー (過去 30 日間)
vincenzo violi
vincenzo violi 2020 年 11 月 22 日
コメント済み: vincenzo violi 2020 年 11 月 22 日
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.
  1 件のコメント
vincenzo violi
vincenzo violi 2020 年 11 月 22 日
Really thanks, it actually works well with your tips!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by