matlab subplot,mathematical operation

With the subplot function to draw more than one graph in the same graph window -10<x<10 for all integers in range;
Write the commands that will draw the graphs of the functions on the screen.

6 个评论

What did you try for your homework?
i don't know anything about this
Start with MATLAB On-ramp course.
clearvars close all
X = -10:1:10; Y1 = X+2; Y2 = X.^2; Y3 = X.^3; Y4 = real(sqrt(X));
subplot(221) plot(X,Y1,'b'); subplot(222) plot(X,Y2,'b');
subplot(223) plot(X,Y3,'b'); subplot(224) plot(X,Y4,'b');

请先登录,再进行评论。

回答(0 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by