How to write a range of coordinates (of an area)
5 ビュー (過去 30 日間)
古いコメントを表示
Yuk Wai Kelvin Chow
2021 年 2 月 19 日
コメント済み: Yuk Wai Kelvin Chow
2021 年 2 月 19 日
I want to get a range of coordinate (x,y) for further calculation of distance between them and a specific points
For example a floor plan of 50x20, how can i get all the points ?in a form of matrix?
Width=50
Length=20
x=[0:Width]
y=[0:Length];
0 件のコメント
採用された回答
Walter Roberson
2021 年 2 月 19 日
Width=5;
Length=3;
x = 0:Width;
y = 0:Length;
[X,Y] = ndgrid(x,y);
XY = [X(:), Y(:)];
disp(XY)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spline Postprocessing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!