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

1 次查看(过去 30 天)
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 个)

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 中查找有关 Line Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by