www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ReplacingSubplotsExample.m
%% Replace Subplot with Empty Axes % Copyright 2015 The MathWorks, Inc. %% % Initialize the random number generator. Use a loop to create a figure % with four stem plots of random data. rng default figure for k = 1:4 data = rand(1,10); subplot(2,2,k) stem(data) end %% % Replace the second subplot with an empty axes. subplot(2,2,2,'replace')