subsref.m

来自「介绍了几个基于EKF扩展卡尔曼滤波的例子」· M 代码 · 共 41 行

M
41
字号
function val = subsref(p,prop)% nfPredatorPrayModel/subsref%% Nonlinear Filtering Toolbox version 2.0rc1% Copyright (c) 1995 - 2006 NFT developement Team,%              Department of Cybernetics,%              University of West Bohemia in Pilsenswitch prop.type    case '()'        error('This type of referencing is not implemented!');    case '.'        switch prop.subs            case 'u'                if p.nu == 0                    val = {};                else                    val = {'input'};                end            case 'x'                if p.nx == 0                    val = {};                else                    val = {'state'};                end            case 'xi'                if p.nxi == 0                    val = {};                else                    val = {'noise'};                end            otherwise                val = subsref(p.nfFunction,prop);        end    case '{}'        error('This type of referencing is not implemented!');end% CHANGELOG

⌨️ 快捷键说明

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