how to use plot?

1 回表示 (過去 30 日間)
Yunho Choi
Yunho Choi 2011 年 8 月 19 日
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

採用された回答

Paulo Silva
Paulo Silva 2011 年 8 月 19 日
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 件)

カテゴリ

Help Center および File Exchange2-D Function Plots についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by