필터 지우기
필터 지우기

How can i determine a point of intersection in a curve ?

조회 수: 2 (최근 30일)
Mallouli Marwa
Mallouli Marwa 2017년 2월 10일
편집: Torsten 2017년 2월 10일
Hi
How can i determine the point of intersection in this curve ?
x=[0;5.00E-05;1.00E-04;1.50E-04;2.00E-04;2.50E-04;3.00E-04;3.50E-04;4.00E-04;4.50E-04;5.00E-04;5.50E-04;6.00E-04;6.50E-04;7.00E-04;7.50E-04;8e-4];
w1_6=[2.06E+02;2.03E+02;1.99E+02;1.96E+02;1.93E+02;1.90E+02;1.87E+02;1.84E+02;1.81E+02;1.79E+02;1.77E+02;1.74E+02;1.72E+02;1.70E+02;1.68E+02;1.66E+02;1.64E+02];
wstable=[185.11; 185.11; 185.11; 185.11; 185.11; 185.11; 185.11;185.11;185.11;185.11;185.11;185.11;185.11;185.11;185.11;185.11;185.11];
plot(x*1e3,wstable,'r',x*1e3,w1_6,'b'),legend('h1','h=1.6*h1')
xlabel('tip mass thickness (mm)')
ylabel(' First mode frequency(Hz)')

채택된 답변

Torsten
Torsten 2017년 2월 10일
pp=spline(x,w1_6);
fun=@(x)ppval(pp,x)-185.11;
x0=0;
x=fzero(fun,x0)
Best wishes
Torsten.
  댓글 수: 2
Mallouli Marwa
Mallouli Marwa 2017년 2월 10일
I obtain a wrong value
x =
-0.00013875
Torsten
Torsten 2017년 2월 10일
편집: Torsten 2017년 2월 10일
pp=spline(x,w1_6);
fun=@(x)ppval(pp,x)-185.11;
x0=[x(1) x(end)];
y=fzero(fun,x0)
Best wishes
Torsten.

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

추가 답변 (1개)

Rik
Rik 2017년 2월 10일
This FEX submission will do what you need with the following line of code.
[x0,y0] = intersections(x*1e3,wstable,x*1e3,w1_6);
  댓글 수: 1
Mallouli Marwa
Mallouli Marwa 2017년 2월 10일
I obtain this error
Undefined function or variable 'intersections'.

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

카테고리

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