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?

 Respuesta aceptada

Nora Khaled
Nora Khaled el 22 de Nov. de 2020

2 votos

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

1 comentario

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 22 de Nov. de 2020

Comentada:

el 22 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by