get.m

来自「剑桥大学用于线性和双线性动力学系统辨识的工具箱」· M 代码 · 共 43 行

M
43
字号
function out = get(model,prop_name)%BILIN/GET   Property access method for BILIN object.%% CUED System Identification Toolbox.% Cambridge University Engineering Department.% Copyright (C) 1998-2002. All Rights Reserved.% Version 1.00, Date: 01/06/2002% Created by H. Chen and E.C. Kerrigan.if nargin < 2  out.A = [];  out.B = [];  out.C = [];  out.D = [];  out.N = [];  out.X0 = 0*ones(0,1);  out.Ts = 1;else	  switch upper(prop_name)   case 'A'	out = model.A;   case 'B'	out = model.B;   case 'C'	out = model.C;   case 'D'	out = model.D;   case 'N'	out = model.N;   case {'X0','X'}	out = model.X0;   case {'TS','T'}	out = model.Ts;   otherwise	error(['''', prop_name, '''', ' is not a valid BILIN property.'])  endend% *** last line of get.m ***

⌨️ 快捷键说明

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