hi everybody , i have a question please , if i have X=[1:10] and Y=[-5:5] and i want to have all the point of the plane (x,y) , what can i do in matlab to extract this point to use it
Afficher commentaires plus anciens
X=[1:10];
Y=[-5:5];
for i=1:10
for j=1:10
3 commentaires
Alex Sune
le 25 Fév 2019
Please be more clear, what do you want exactly?
mina massoud
le 25 Fév 2019
Réponse acceptée
Plus de réponses (1)
madhan ravi
le 25 Fév 2019
I am not sure I fully understand but see if it does what you want
[x,y]=ndgrid(X,Y);
[x(:) y(:)] % after this it’s just matrix manipulation
Catégories
En savoir plus sur Mathematics 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!