Create x and y coordinates with available values
조회 수: 2 (최근 30일)
이전 댓글 표시
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)
댓글 수: 2
채택된 답변
추가 답변 (1개)
Image Analyst
2022년 7월 2일
Try
randomX = min(x) + range(x) * rand(1);
randomY = min(y) + range(y) * rand(1);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!