DSP

2 views (last 30 days)
AYAH
AYAH on 8 Feb 2012
hello everybody how can I find the time at which the maximum value of the signal happen, if I have signal of 2D ,one is the time and the other is the amplitude .

Accepted Answer

Walter Roberson
Walter Roberson on 8 Feb 2012
[maxval, maxidx] = max(YourSignal(:,2)); %assuming 2nd col is ampl
time_at_max = YourSignal(maxidx,1); %assuming 1st col is time

More Answers (0)

Categories

Find more on DSP System Toolbox in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!