basic plotting showing input needed as char
Show older comments
%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'.
Answers (0)
Categories
Find more on Subplots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!