get 2 set of random coordinates

1 vue (au cours des 30 derniers jours)
Muhamad Arung
Muhamad Arung le 2 Juil 2022
Commenté : KALYAN ACHARJYA le 2 Juil 2022
i have values for x [0-20] and y [0-30] want to make coordinates between x and y, can't exceed 20 and 30 how do I do that?
  1 commentaire
Image Analyst
Image Analyst le 2 Juil 2022
Give an example desired output.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

Connectez-vous pour commenter.

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 2 Juil 2022
Modifié(e) : KALYAN ACHARJYA le 2 Juil 2022
x=0:20; % Or any Random Data
y=0:30; % Or any Random Data
cor_data=[x(randi(length(x))),y(randi(length(y)))]
cor_data = 1×2
17 7
  2 commentaires
Muhamad Arung
Muhamad Arung le 2 Juil 2022
Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check
for mismatched delimiters.
KALYAN ACHARJYA
KALYAN ACHARJYA le 2 Juil 2022
Any Issue?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by