Write a MATLAB program to draw the surfaces z=sqrt(x^2+y^2), z=x^2+y^2, z=x+y and a cylinder of radius 3 using subplot
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Vansh
am 1 Nov. 2021
Beantwortet: William Rose
am 1 Nov. 2021
Can someone explain this subplot thing to me?
0 Kommentare
Akzeptierte Antwort
William Rose
am 1 Nov. 2021
You are being asked do draw four surfaces in different parts of a single figure. See the help for subplot() for examples. You could do a column of 4 plots, or a row of 4, or two rows of two, as shown below.
x=0:10;
subplot(2,2,1);
plot(x,x); title('x');
subplot(2,2,2);
plot(x,x.^2); title('x squared');
subplot(2,2,3);
plot(x,x.^3); title('x cubed');
subplot(2,2,4);
plot(x,x.^4); title('x to the fourth');
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Subplots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!