How to measure graph wave distance ?
4 ビュー (過去 30 日間)
古いコメントを表示
I want to find the distance between the graph and straight line as shown below,
Thank you.
2 件のコメント
回答 (1 件)
Bruno Luong
2024 年 9 月 23 日
編集済み: Bruno Luong
2024 年 9 月 23 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!