怎样在MATLAB中提数据的极值。
4 ビュー (過去 30 日間)
古いコメントを表示
网上线上百家乐网站【微8785092】
2023 年 5 月 24 日
回答済み: 百家乐真人平台网址【微8785092】
2023 年 5 月 24 日
急求。大神们,怎样在MATLAB中提 数据的极值啊
0 件のコメント
採用された回答
百家乐真人平台网址【微8785092】
2023 年 5 月 24 日
估计LZ调用findpeaks函数没有用对。用LZ的dcp数据,程序如下,
xx=load('dcp.txt');
t=xx(:,1);
x=xx(:,2);
plot(t,x); grid; hold on
[K,V]=findpeaks(x);
thr=1200;
vdex=find(V>thr);
V1=V(vdex);
K1=K(vdex);
plot(t(K1),V1,'r.','linewidth',5);
title(['信号提取极值,阈值thr=' num2str(thr)]);
其中阈值可任意设置,图中红点表示极值点。
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で 描述性统计量 についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!