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?

 Réponse acceptée

Nora Khaled
Nora Khaled le 22 Nov 2020

2 votes

in your last case you use else then put a condition.
you should either use "elseif" or no condition.

1 commentaire

vincenzo violi
vincenzo violi le 22 Nov 2020
Really thanks, it actually works well with your tips!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by