Simple question, how can I plot this tan x function?
21 ビュー (過去 30 日間)
古いコメントを表示
I want to be able to plot the following equation into matlab and be able to graph it, but I'm not sure how to do it.
- x = - tan (y)
How would I go about this?
0 件のコメント
採用された回答
Star Strider
2021 年 5 月 23 日
Perhaps —
x = @(y) tan(y)
figure
fplot(x, [-pi pi])
grid
xticks([-pi -pi/2 0 pi/2 pi])
set(gca, 'XTickLabel',{'$-\pi$', '$-\frac{\pi}{2}$' '$0$' '$\frac{\pi}{2}$' '$\pi$'}, 'TickLabelInterpreter','latex', 'FontSize',12)
.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
