www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/UpperandLowerSubplotsExample.m
%% Upper and Lower Subplots % Create a figure with two stacked subplots. Plot a sine wave in each axes. % Copyright 2015 The MathWorks, Inc. %% x = linspace(0,10); y1 = sin(x); y2 = sin(5*x); figure subplot(2,1,1); plot(x,y1) subplot(2,1,2); plot(x,y2)