how to use plot?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
syms x
th=[0:0.05:1.57];
[x]=solve('cos(th+x)=0','x')
i wanna show graph about x-axis--->th,y-axis--->x
i use function solve.
but it calls just
x =
pi/2 - th
i want vector x that extracted by th.
then i wanna see plot at x-axis--->th,y-axis--->x
how to i solve it?
thank you for reading
0 commentaires
Réponse acceptée
Paulo Silva
le 19 Août 2011
Maybe this
syms x
th=[0:0.05:1.57];
[x]=solve('cos(th+x)=0','x');
f=subs(x,'th',th);
plot(th,f,th,cos(th),'r')
legend('f','cos(th)')
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!