I have been working with Matlab, a new language for me and what I want to do is a program that introduces a grade and if it is greater than 6 it shows a message that it happened otherwise it fails, but I also want to check where If the user enters a letter or a word, say that a number is required and stop the execution.
cali=input("Dame tu calificacion \n",'s');if cali2>6
fprintf("Felicidades pasaste");elseif cali2<=5
fprintf("Reprobaste");else
fprintf("Tienes que introduccir un numero");end
After trying several times this code worked for me:
I guess there is a better way to do it.