gridbin
gridbin
A fast MATLAB function for gridding very large datasets of scattered data. This function is somewhat similar to Matlab's built-in griddata
or John D'Errico's gridfit
, with the differences being that
-
gridbin
returns the mean value of all scattered data points within every cell of a grid rather than interpolating or fitting a surface. -
gridbin
is much faster thangriddata
orgridfit
. -
gridbin
can handle much larger scattered datasets thangriddata
orgridfit
. -
gridbin
can return statistics. For example,gridbin
can return the standard deviation of all scattered data points within a grid cell simply by adding@std
to the function call.
Syntax
vq = gridbin(x,y,v,xq,yq)
vq = gridbin(...,@func)
[vq,N] = gridbin(...)
Description
vq = gridbin(x,y,v,xq,yq)
produces a 2D grid of values vq at the coordinates
xq,yq. Inputs x,y,v may be scattered data, and the output vq is the mean
of all scattered values v within each spatial bin.
vq = gridbin(...,@func)
applies any function @func to the v data. By
default, @func is @mean, meaning that vq contains the mean of all values
v within each spatial bin.
[vq,N] = gridbin(...)
also returns a grid N containing the number of
observations v in each bin.
引用
Chad Greene (2024). gridbin (https://github.com/chadagreene/gridbin), GitHub. に取得済み.
MATLAB リリースの互換性
プラットフォームの互換性
Windows macOS Linuxタグ
謝辞
ヒントを得たファイル: Surface Fitting using gridfit
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!GitHub の既定のブランチを使用するバージョンはダウンロードできません
バージョン | 公開済み | リリース ノート | |
---|---|---|---|
1.0.0 |
|