How do you plot multiple functions so they have their own subplot, but all have plots within the same figure window?
Show older comments
I have 4 equations with a domain of [0,10]. I need to graph the functions so tehy have their own subplot, but also have all teh plots within the same window. I have been trying to use hold on and hold off, but so far that only shows me my last function, not all of them together. Any suggestions or tips?
x=linspace(0,10);
a=x+1;
b=x.^2+x+1;
c=x.^3++x.^2+x+1;
d=x.^4+x.^3++x.^2+x+1;
plot(x,a)
grid
hold on
plot(x,b)
grid
hold on
plot(x,c)
grid
hold on
hold on
figure
plot(x,d)
grid
hold off
Accepted Answer
More Answers (0)
Categories
Find more on Multirate Signal Processing 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!

