subplot of trigonometric function
14 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I want to make a 3x1 subplot (1 column and 3 row) for 3 trigonometric graphs
y = sin(x)
y= cos(x)
y = tan(x)
for x = 1:0.1:50
What code to do this? Thank you.
0 件のコメント
回答 (1 件)
Stephan
2019 年 10 月 24 日
A = @(x) sin(x);
subplot(3,1,1)
fplot(A,[1 50])
B = @(x) cos(x);
subplot(3,1,2)
fplot(B,[1 50])
C = @(x) tan(x);
subplot(3,1,3)
fplot(C,[1 50])
2 件のコメント
Steven Lord
2019 年 10 月 24 日
The Formatting and Annotation chapter in the documentation describes functions, tools, and techniques you can use to customize the appearance of your plots.
参考
カテゴリ
Help Center および File Exchange で Subplots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!