set.m

来自「Matsig is an object-oriented signal clas」· M 代码 · 共 22 行

M
22
字号
function a = set(a,varargin)% SET Set FREQUENCY properties and return the updated object% $Id: set.m 85 2005-08-31 12:36:23Z mairas $property_argin = varargin;while length(property_argin) >= 2,    prop = property_argin{1};    val = property_argin{2};    property_argin = property_argin(3:end);    switch prop    case 'begin'        a.begin = val;    case 'num'        a.num = val;    case 'fs'        a.fs = val;    otherwise        error('invalid property for frequency')    endend

⌨️ 快捷键说明

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