フィルターのクリア

Create a matrix from x y coordinates

27 ビュー (過去 30 日間)
CBworker
CBworker 2021 年 1 月 22 日
回答済み: Bram Schroeders 2021 年 1 月 22 日
Hello,
I have an array with two columns of x and y coordinates (values are in cm). From this array I would like to create a square matrix of 256 x 256 elements (which represent a matrix of 256 x 256 pixels). Every pixel must have a dimension of 5 x 5 cm². As for elements, they should represent the number of points (xi,yi) inside of the pixel.
I tried a lot of ways, but none of these is working. I'm asking if anyone of you had a close problem who may help me. Thanks

回答 (1 件)

Bram Schroeders
Bram Schroeders 2021 年 1 月 22 日
Take a look at this documentation: https://www.mathworks.com/help/matlab/ref/meshgrid.html

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by