how can i plot "L(1) L(2)*cosd(t) -

조회 수: 2 (최근 30일)
Dwaipayan Roy
Dwaipayan Roy 2018년 6월 8일
댓글: Dwaipayan Roy 2018년 6월 8일
How can i plot "L(1) + L(2)*cosd(t) - L(3)*cosd(j) = cosd(t - j)" between t and j, given L(1),L(2),L(3) are constants? Please help someon
  댓글 수: 4
Torsten
Torsten 2018년 6월 8일
And your constants L(1), L(2) and L(3) are such that your equation always has a solution for t, given j ?
Dwaipayan Roy
Dwaipayan Roy 2018년 6월 8일
It's within a certain limit. I give xi and xf and t=xi:0.1:xf such that it will have a solution. It's for a four bar linkage synthesis

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

채택된 답변

Torsten
Torsten 2018년 6월 8일
xi=...;
xf=...;
L = [... ;... ;...];
T = xi:0.1:xf;
J = zeros(numel(T),1);
for i=1:numel(T)
t = T(i);
fun=@(j) L(1)+L(2)*cosd(t)-L(3)*cosd(j)-cosd(t-j);
j0 = 1.0;
J(i) = fzero(fun,j0)
end
plot(T,J)
  댓글 수: 1
Dwaipayan Roy
Dwaipayan Roy 2018년 6월 8일
Ahh I see now. Thank you

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

추가 답변 (1개)

Aquatris
Aquatris 2018년 6월 8일
You can use;
syms x y
ezplot(4+5*cos(x)-6*cos(y) == cos(x-y))
where x and y are in radian instead of degree.

카테고리

Help CenterFile Exchange에서 Graph and Network Algorithms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by