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
Show older comments
X=[1:10];
Y=[-5:5];
for i=1:10
for j=1:10
3 Comments
Alex Sune
on 25 Feb 2019
Please be more clear, what do you want exactly?
mina massoud
on 25 Feb 2019
Accepted Answer
More Answers (1)
madhan ravi
on 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
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!