필터 지우기
필터 지우기

How to find points of intersections of graphs?

조회 수: 1 (최근 30일)
Asatur Khurshudyan
Asatur Khurshudyan 2012년 12월 15일
Hi everybody. I need to find zeros of given functions of one (and the same) variable in given interval. f_k(t)=1-cos(a_k*t-b_k), -Pi<t<Pi, k=1,2,...,n (n is a given integer), a_k and b_k are known.
I thought to draw graphics of that functions and find the points of their intersections. But I could just draw graphics, and could not find that points. Could you help me with graphics or advice another way of solution?
  댓글 수: 2
Matt Fig
Matt Fig 2012년 12월 15일
편집: Matt Fig 2012년 12월 15일
The question is a little unclear. Do you mean that for each integer k on [1,n] you want to find where 1-cos(a(k)*t-b(k)) intersects all of the other 1-cos(a(d)*t-b(d)), d~=k, d on [1,n]?
How many long is a and b? Can you show them?
Asatur Khurshudyan
Asatur Khurshudyan 2012년 12월 15일
Yes, you`re right. I can right down only a_k here: a_k=(Pi*k)^2/sqrt(1+c*(Pi*k)^2), where c is given constant. b_k are of the arctan() form.

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

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 15일
편집: Azzi Abdelmalek 2012년 12월 15일
pas=0.01
t=-pi:pas:pi;
n=length(t);
a_k=[1 2 3 4];
b_k=[1 2 3 4];
for k=1:numel(a_k)
f_k{k}=1-cos(a_k(k)*t-b_k(k));
[c,idx1]=findpeaks(-f_k{k})
tzeros{k}=t(idx1)
end
  댓글 수: 7
Asatur Khurshudyan
Asatur Khurshudyan 2012년 12월 15일
Haw can I check your algorithm (the problem is that I`m just a beginner)?
Azzi Abdelmalek
Azzi Abdelmalek 2012년 12월 15일
편집: Azzi Abdelmalek 2012년 12월 15일
tzeros{1} is the vector time result for k=1
tzeros{2} is the vector time result for k=2
and so on

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 3-D Scene Control에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by