random0 to generate a random value in rang [low,high)
Afficher commentaires plus anciens
Write a function that uses function random0 to generate a random value in the range low, high), where low and high are passed as calling arguments. make random0 a private function called y your new function.
1 commentaire
Jan
le 6 Mai 2013
This is a command and not a question. How impolite.
Réponses (1)
Image Analyst
le 6 Mai 2013
0 votes
Did you see the very first example in the help for the rand() function. It's your answer. Just take that example and put it inside a function called "random0" and you're done. I have no idea what "y" is or how you can have a function called both random0 and y at the same time.
Catégories
En savoir plus sur MATLAB 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!