Please Answer My Question
2 次查看(过去 30 天)
显示 更早的评论
Create a figure divided into four subplots. Sine(x), cosine(x), 𝑒−𝑥 and 𝑥3. Where x is vector from 0 to 2*pi, increasing by 0.1 The output should be:
回答(1 个)
Carlos Guerrero García
2022-11-13
x=0:0.1:2*pi;
subplot(2,2,1); plot(x,sin(x));
subplot(2,2,2); plot(x,cos(x));
subplot(2,2,3); plot(x,exp(-x));
subplot(2,2,4); plot(x,x.^3);
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!