필터 지우기
필터 지우기

How to measure graph wave distance ?

조회 수: 95 (최근 30일)
MARLIANA HAFIZA
MARLIANA HAFIZA 2024년 9월 23일 4:57
댓글: MARLIANA HAFIZA 2024년 9월 23일 7:49
I want to find the distance between the graph and straight line as shown below,
Thank you.
  댓글 수: 2
Shashi Kiran
Shashi Kiran 2024년 9월 23일 6:56
Do you have the specific points on the curve and the line available?
MARLIANA HAFIZA
MARLIANA HAFIZA 2024년 9월 23일 7:49
I want to find the distance for all the points together. I have the points value for each line

댓글을 달려면 로그인하십시오.

답변 (1개)

Bruno Luong
Bruno Luong 2024년 9월 23일 7:24
편집: Bruno Luong 2024년 9월 23일 7:24
It looks like you need to rotate the whole picture (red line + blue curve) to minus the slope of the red line.
After rotation the redline become horizontal; then tthe distance is just the differential y-coordinate (after rotation) of the any blue points to the y-coordinate of the horizontal red line
Rotation is multiply x-y coordinates by matrix, see wiki
R := [cos(theta) -sin(theta);
sin(theta) cos(theta)]
R*[x;y]
Use theta as minus the slope of red line. You must know the redlinne equaltion, so its slope somehow.

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by