I plotted this and i want to measure the length and analyze the section of this plot

조회 수: 18 (최근 30일)
This is the part that i want to analyze and measure,its just an example
Is there a way to analyze this?
thank you for your attention

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 10월 14일
Do you have x and y values of the line and the x values of the end-points? If yes, you can use logical indexing
x; % vector of all x-values
y; % vector of all y-values
x1; % left en-point
x2; % right end-point
idx = (x1 < x) & (x < x2);
x_vals = x(idx);
y_vals = y(idx); % x and y values you want
  댓글 수: 7
Ameer Hamza
Ameer Hamza 2020년 10월 15일
more curved is a very subjective term. It needed to be defined in a mathematically precise wat.
Firas Guechchati
Firas Guechchati 2020년 10월 19일
i have an idea
what if i determine the max slope and the min slope,and these are my values that i want

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by