Create x and y coordinates with available values
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Muhamad Arung
il 2 Lug 2022
Commentato: Muhamad Arung
il 3 Lug 2022
I have a value of x(0 - 20) and a value of y (0-30) then I will coordinate the X horizontal axis and Y vertical axis with these values, how is th code to make the x and y coordinates? and determine a random point between x and y for example (1,2)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1053210/image.png)
2 Commenti
Risposta accettata
Più risposte (1)
Image Analyst
il 2 Lug 2022
Try
randomX = min(x) + range(x) * rand(1);
randomY = min(y) + range(y) * rand(1);
0 Commenti
Vedere anche
Categorie
Scopri di più su Startup and Shutdown in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!