How to take value from function and put it into disp script?
Mostra commenti meno recenti
My task is to "display the words: 'The ball hits the ground at a distance of X meters', where X is the hitDistance from the function throwBallFunc." (I have written the throwBallFunc).
So far, I have disp( ' The ball hits the ground at a distance of %d meters '); which is not working. How do I write it so that I can get the value of X aka hitDistance from the function throwBallFunc that I created? Thank you!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Operators and Elementary Operations in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!