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
Mostrar comentarios más antiguos
X=[1:10];
Y=[-5:5];
for i=1:10
for j=1:10
3 comentarios
Alex Sune
el 25 de Feb. de 2019
Please be more clear, what do you want exactly?
mina massoud
el 25 de Feb. de 2019
Respuesta aceptada
Más respuestas (1)
madhan ravi
el 25 de Feb. de 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
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!