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
古いコメントを表示
X=[1:10];
Y=[-5:5];
for i=1:10
for j=1:10
3 件のコメント
Alex Sune
2019 年 2 月 25 日
Please be more clear, what do you want exactly?
mina massoud
2019 年 2 月 25 日
採用された回答
その他の回答 (1 件)
madhan ravi
2019 年 2 月 25 日
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
カテゴリ
ヘルプ センター および File Exchange で Mathematics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!