Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Finding the maximum points

Asked by FIR

FIR (view profile)

on 14 Sep 2012

I have images,where each image has sine wave ,now i want to find the maximum point of each positive peak and find the distance between them,please help

2 Comments

Thomas

Thomas (view profile)

on 14 Sep 2012

If I understand you right, you want to extract the numerical value of the peak of sine wave, and the distance between the peaks from an image.. Can you please post the image as well?

FIR

FIR (view profile)

on 14 Sep 2012

Yes Binish you are correct i want to find the peaks of sine wave

FIR

FIR (view profile)

Products

No products are associated with this question.

1 Answer

Answer by David Lieberman

David Lieberman (view profile)

on 14 Sep 2012
Accepted answer

If you have the image processing toolbox, define your axes, x and y, them display your image with say imagesc(x,y,img); Then,

Use imdistline(gca) to graphically measure the distance between any 2 points of interest to you.

0 Comments

David Lieberman

David Lieberman (view profile)

Contact us