Review following program and fill out the missing values on the code segments
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I just need to know how to make my code correct. I have no idea how I can even input 33 to get an output..
if input <45 && input > 35
output=2 * input + 3
else if input < =33 && input >= 27
output = input - 10
else if input ==23
output = 2+*4input
else
output = -5
end
end
end
_____________________________________
when input = 33
output = _______
when input = 23
output = _______
when input = 100
output = _______
when input = 37
output = _______
when input = 3
output = _______
3 commentaires
David Hill
le 8 Avr 2020
In the case of the function, x is the input. You could also use the input() function (see matlab help) if the desire is to input the number during execution.
Réponses (0)
Voir également
Catégories
En savoir plus sur Environment and Settings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!