データの間引きについて
58 views (last 30 days)
Show older comments
Hiroki Takeda
on 27 May 2022
Commented: Hiroki Takeda
on 31 May 2022
grid dataの処理をしています。
grid intervalが細かいので、間引くことを考えています。
一定間隔ごとに間引く方法を教えていただけると幸いです。
よろしくお願いいたします。
2 Comments
Atsushi Ueno
on 27 May 2022
より細い方向もより荒い(間引いた)方向も同じ考えです。必要なgrid intervalのメッシュを用意し、各種interp**関数で補間したデータを得ます。
Accepted Answer
Hernia Baby
on 28 May 2022
Edited: Hernia Baby
on 29 May 2022
idx = (間隔の点数)
A(idx) = [] のようにすれば大丈夫と思います
--------------
A = rand(20)
idx1 = 2:2:20;
idx2 = 1:3:20;
A(idx1,:) = []
A(:,idx2) = []
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!