If p is a single number, then either subplot(m,n,p) or subplot(mnp) will work. However, should you do it this way, you must call subplot this way: subplot(m,n,p). You can also specify a vector of points for p. The figure that the code above describes looks like the following: You must make sure that you know how many figures you want within the overall window before you start plotting. Notice that the last parameter of subplot increases linearly, while the first two parameters stay the same. What the above code does is that we generate random sets of points that are 100 x 1 each for pairs of x and y and we plot them in multiple locations within the overall window. Let's create a window that has two rows and three columns worth of figures within the same window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |