필터 지우기
필터 지우기

Comparison two curves (functions)

조회 수: 8 (최근 30일)
Moustafa Abedel Fattah
Moustafa Abedel Fattah 2022년 5월 14일
답변: Star Strider 2022년 5월 14일
If the function g(z) gives the curve as shown in the figure how can I detect the fault tracepoint (green dash line) and its location on the x-axis as and put a slant line at the curve by Matlab
using the inverting point of the curve? please urgently I need an answer. Thanks in advance.
  댓글 수: 1
dpb
dpb 2022년 5월 14일
The figure looks like they found the zero-crossing of the model

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

답변 (1개)

Star Strider
Star Strider 2022년 5월 14일
Use interp1
x = linspace(1, 20, 30);
y = tanh(x-12-rand)*2.5;
x0 = interp1(y,x,0)
x0 = 12.7191
figure
plot(x,y, x0,0,'+r', 'MarkerSize',15)
grid
ylim([-3 3])
.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by