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

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 Commenti

Dwaipayan - what are t and j?
X and Y axis are t and j respectively. We can replace t and j for x and y. But I'm not able to express it such that only j ("y") remains on the left hand side. How can I plot such functions?
Torsten
Torsten il 8 Giu 2018
And your constants L(1), L(2) and L(3) are such that your equation always has a solution for t, given j ?
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

Accedi per commentare.

 Risposta accettata

Torsten
Torsten il 8 Giu 2018
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)

Più risposte (1)

Aquatris
Aquatris il 8 Giu 2018
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.

Categorie

Scopri di più su 2-D and 3-D Plots in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by