Info
此问题已关闭。 请重新打开它进行编辑或回答。
how to extracts each index for each maximum value?
1 次查看(过去 30 天)
显示 更早的评论
[value index]=max() give only one maximum value and a index. But i need a code that gives each maximum value and their index in both time and frequency domain. how do it?
0 个评论
回答(1 个)
Walter Roberson
2014-2-10
value = max(YourVector);
allindex = find(YourVector == value);
A maximum in the time domain is present in all frequencies.
I wonder if you are looking for peaks rather than maximums ?
0 个评论
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!