If we want to place to one figure more than one drawings, we can use function subplot. This function hand out figure according to matrix MxN. Parameter P is place, where the next drawings will be ploted. It returns handle to variable h.

Example:

subplot(1,2,1)

bar(x,exp(-x.*x))

subplot(1,2,2)

stem(x,exp(-x.*x),"fill")

<<< 1.10 Addition in graphs - functions colorbar, grid, title | 1.12 Set and get >>> |

© 2008 David Prokop