⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 assignline.m

📁 有关matlab的电子书籍有一定的帮助希望有用
💻 M
字号:
function [oh,lc] = assignline(lc,M,parent_ax,varargin)
%ASSIGNLINE  Assign lines from cache, or create new lines.
%   [oh,lc] = assignline(lc,data,parent_ax)
%   Inputs:
%      lc - line cache - vector of handles to line objects
%      M - number of lines to create / assign.
%      parent_ax - axes object handle which is the parent of lines
%          param/value pairs - for setting properties of any lines in oh
%   Outputs:
%      oh - vector of output handles
%      lc - line cache, updated
%
%   Used by sigbrowse and spectview

% Copyright (c) 1988-98 by The MathWorks, Inc.
% $Revision: 1.3 $

if length(lc)>=M
    oh = lc(1:M);
    lc = lc(M+1:end);
else
    M=M-length(lc);
    oh = lc;
    lc = zeros(0,1);
    oh = [oh; line(zeros(2,M),zeros(2,M),'parent',parent_ax) ];
end
oh = oh(:);
if nargin>3
    set(oh,varargin{:})
end
lc = lc(:);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -