Anyone that can find what is wrong about the function?
Afficher commentaires plus anciens
It says " Not enough input values" but I can not see which values I have missed? Can you?

3 commentaires
Are you calling the function in the command window (or from another location, e.g. from another script or function) with two input arguments (as you should be doing) or are you just clicking the big green "Run" button (which unless you have set it up properly, will not provide any input arguments to your function) ?
Jenny Andersen
le 18 Nov 2019
Stephen23
le 19 Nov 2019
"But if I want to be able to run the function (by clicking "Run"), how do I need to change my function to be able to achive this?"
You can either:
- write your function to have default values when input arguments are not supplied, or
- set up the "Run" button to provide specific input values when you call that function.
Which would you prefer?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Whos 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!