Once you've finished creating all the subplots (and you have the handles), you can set all of them at once by using :
set(AX_handles,'YLim',[A B])
Where AX_handles is a vector of axes handles, one for each subplot- for example:
for n=1:10 AX(n) = subplot(5,2,n) end
A and B are your lower and upper limits. Finding the overall max will vary a bit depending on how your data is structed but it shouldn't be too hard.
subplot
divides the current figure into rectangular panes that are numbered rowwise. Each pane contains an axes object. Subsequent plots are output to the current pane.
h = subplot(m,n,p)
, or subplot(mnp)
breaks the Figure window into an m
-by-n
matrix of small axes, selects the p
th axes object for for the current plot, and returns the axis handle. The axes are counted along the top row of the Figure window, then the second row, etc. For example,
plots income on the top half of the window and outgo on the bottom half. If the CurrentAxes
is nested in a uipanel, the panel is used as the parent for the subplot instead of the current figure. The new axes object becomes the current axes.
If p
is a vector, it specifies an axes object having a position that covers all the subplot positions listed in p
.
subplot(m,n,p,'replace')
If the specified axes object already exists, delete it and create a new axes.
subplot(m,n,p,'align')
positions the individual axes so that the plot boxes align, but does not prevent the labels and ticks from overlapping.
subplot(h)
makes the axes object with handle h
current for subsequent plotting commands.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.