Azzera filtri
Azzera filtri

Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

how to extracts each index for each maximum value?

1 visualizzazione (ultimi 30 giorni)
Saifuddin Chowdhury
Saifuddin Chowdhury il 10 Feb 2014
Chiuso: MATLAB Answer Bot il 20 Ago 2021
[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?

Risposte (1)

Walter Roberson
Walter Roberson il 10 Feb 2014
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 ?

Questa domanda è chiusa.

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by