How to input scattered multivariate data to csaps - bug compared to tpaps?
古いコメントを表示
Similar to the example in tpaps (copied below), I want to use csaps to smooth multivariate scattered, not gridded, data. While the documentation for the input "x - data sites" is identical for both tpaps and csaps, tpaps will accept a 2-by-m array of points while csaps will not.
rng(23); nxy = 31;
xy = 2*(rand(2,nxy)-.5); vals = sum(xy.^2);
noisyvals = vals + (rand(size(vals))-.5)/5;
st = tpaps(xy,noisyvals);
tpaps will accept the array xy, while csaps will not. I understand that csaps can accept multivariate data using a cell-array input to specify the points in each dimension, but based off the example in csaps this appears to require gridded sites. Is there an option for using csaps with scattered sites?
Thanks!
-Craig
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Time Series Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!