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
Ältere Kommentare anzeigen
X=[1:10];
Y=[-5:5];
for i=1:10
for j=1:10
3 Kommentare
Alex Sune
am 25 Feb. 2019
Please be more clear, what do you want exactly?
mina massoud
am 25 Feb. 2019
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 25 Feb. 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
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!