what does this instruction means?

1 view (last 30 days)
lotus
lotus on 22 Mar 2013
sfdr=max(ptot(nper+4:N/2))

Accepted Answer

C.J. Harris
C.J. Harris on 22 Mar 2013
Edited: C.J. Harris on 22 Mar 2013
It means sfdr will take on the maximum value contained in the array ptot between element number nper+4 and element number N/2.
If you want a better answer you really have to add more detail to your question.
  5 Comments
C.J. Harris
C.J. Harris on 22 Mar 2013
Edited: C.J. Harris on 22 Mar 2013
My guess is that the values in the array ptot are not what you expect. In your example above you are taking the maximum value in the array ptot between element 77 and 2048. In your case that maximum value is -74.2306, there is nothing you can do to 'correct' this, apart from changing the values in the array ptot.
lotus
lotus on 22 Mar 2013
thank you.i'll try my best.your explanation made me understand better about "nper"

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!