basic plotting showing input needed as char
Afficher commentaires plus anciens
%linear
clc
x=2:5:10;
subplot(2,5,1)
y=sin(x)
subplot(2,5,2)
plot(x,y)
subplot(2,5,3)
stem(x,y)
subplot(2,5,4)
stairs(x,y)
subplot(2,5,5)
bar(x,y)
subplot(2,5,6)
hist(y)
subplot(2,5,7)
comet(x,y)
subplot(2,5,8)
contour(x,y)
subplot(2,5,9)
pie(x,y)
subplot(2,5,10)
area(x,y)
%log
hold
subplot(1,3,1)
loglog(x,y)
subplot(1,3,2)
semilog(y)
subplot(1,3,3)
semilog(x)
%polar
hold
polar(x,y)
error -------------------- ??? Undefined function or method 'linear_log_ploar_all' for input arguments of type 'char'.
Réponses (0)
Catégories
En savoir plus sur Subplots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!