필터 지우기
필터 지우기

finding the slope and plotting it in graph

조회 수: 2 (최근 30일)
sisir regmi
sisir regmi 2019년 4월 20일
댓글: David Wilson 2019년 4월 21일
i need to find the x,y points and plot those points finding the slope making a line in x,y plane. How can i get it automatically
  댓글 수: 6
Walter Roberson
Walter Roberson 2019년 4월 21일
There are over 20 File Exchange contributions that do their best to return the line coordinates https://www.mathworks.com/matlabcentral/fileexchange?q=tag%3Adigitize
Your image might be too dense for it to work properly: you effectively have multiple y for each x because of low resolution.
David Wilson
David Wilson 2019년 4월 21일
Are you sure you want the gradient of your data?
I should also comment that from your above (frequency?) plot, it does seem very noisy, and given that extracting the gradient operation tends to amplify the high frequency components, (especially if you do something crude like finite differences), then your resultant plot of the derivative will be very niosy.
If I was to smooth your data, I'd think very carefully about how to do it. I'd probably fit a smoothing spline through the data, and then differentiate that. But plotted over the range you have shown above, it's likely to be a considerable mess.

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

답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by