重心動揺の外周面積の求め方
21 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
X座標とY座標のある、重心動揺の生データから外周面積を求めるコードを教えていただきたいです。 サンプリング周波数は1000Hzです。
2 commentaires
Akira Agata
le 10 Nov 2023
念のため確認させてください。
たとえば10秒間測定した場合、10,000点分の (x, y) 座標データがあるかと思います。これらの点を含む凸包の面積を求めたいということでしょうか?
Réponse acceptée
Akira Agata
le 12 Nov 2023
% (x, y) 座標データ (※簡単のため20点としています)
x = randn(20, 1);
y = 2*randn(20, 1);
% 凸包とその面積を計算
[pt, s] = convhull(x, y);
% 面積を表示
fprintf("面積は %.1f です。\n", s)
% データと凸包を可視化
figure
plot(x, y, 'o-')
hold on
plot(x(pt), y(pt))
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Histograms dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!