坐标轴 截断 matlab,Matlab画图中Y坐标轴截断

CODE:

function h=BreakPlot(x,y,y_break_start,y_break_end,break_type,y_arbitrary_scaling_factor)

% BreakPlot(x,y,y_break_start,y_break_end,break_type)

% Produces a plot who's y-axis skips to avoid unnecessary blank space

%

% INPUT

% x

% y

% y_break_start

% y_break_end

% break_type

%    if break_type='RPatch' the plot will look torn

%       in the broken space

%    if break_type='Patch' the plot will have a more

%       regular, zig-zag tear

%    if break_plot='Line' the plot will merely have

%       some hash marks on the y-axis to denote the

%       break

%

% EXAMPLE #1:

%

% NEW = 1;

% sampleTimes = [1:200];

% RPM = [600+rand(1,100)*500, 4500+rand(1,100)*2500];

% figure;

你可能感兴趣的:(坐标轴,截断,matlab)