Home > classes > @ssm > model_standard_system_params.m

model_standard_system_params

PURPOSE ^

defines a simple 2nd order stable system with a control and a noise input

SYNOPSIS ^

function [sys, VERSION] = model_standard_system_params

DESCRIPTION ^

 defines a simple 2nd order stable system with a control and a noise input
 ONLY THE CONSTRUCTOR SHOULD CALL THIS PRIVATE FUNCTION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 DESCRIPTION: model_standard_system_params defines a simple 2nd order
 stable system with a control and a noise input

 CALL: [sys, VERSION] = model_standard_system_params 
                         
 ***** There are no parameters *****

 VERSION: $Id: $

 HISTORY: 01-04-2008 M Weyrich
 23-04-2008 A Grynagier
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [sys, VERSION] = model_standard_system_params
0002 % defines a simple 2nd order stable system with a control and a noise input
0003 % ONLY THE CONSTRUCTOR SHOULD CALL THIS PRIVATE FUNCTION
0004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0005 %
0006 % DESCRIPTION: model_standard_system_params defines a simple 2nd order
0007 % stable system with a control and a noise input
0008 %
0009 % CALL: [sys, VERSION] = model_standard_system_params
0010 %
0011 % ***** There are no parameters *****
0012 %
0013 % VERSION: $Id: $
0014 %
0015 % HISTORY: 01-04-2008 M Weyrich
0016 % 23-04-2008 A Grynagier
0017 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0018 VERSION = '$Id:$';
0019 utils.helper.msg(utils.const.msg.MNAME, ['running ', mfilename]);
0020 
0021 sys = ssm;
0022 
0023 sys.name = 'standard test system';
0024 
0025 sys.paramnames  = {'w' 'c' 'c1' 'c2' 'b' 'd'};
0026 sys.paramvalues = [0.2 0.5 0 0 1 1];
0027 sys.paramsigmas = [0.2 0.1 1 1 1 1];
0028 
0029 % declaring symbolic parameters
0030 for i_params=1:length(sys.paramnames)
0031    cmd = [sys.paramnames{i_params}, '=sym(''', sys.paramnames{i_params},''');'];
0032    eval(cmd);
0033 end
0034 
0035 sys.amats    = {[0 1 ; -w*w -w*c]};
0036 sys.cmats    = {[1+c1 c2]};
0037 sys.bmats    = {[0;b] [0 0; 1 0]};
0038 sys.dmats    = {[d] [0 1]};
0039 sys.ssini    = {[1; 0]};
0040 sys.timestep = 0;
0041 
0042 sys.ssnames    = {'standard test system'};
0043 sys.ssvarnames = {{'x' 'xdot'}};
0044 sys.ssisused   = true;
0045 
0046 sys.inputnames    = {'U' 'N'};
0047 sys.inputvarnames = {{'Fu'} {'Fn' 'On'}};
0048 sys.inputisused   = true(1,2);
0049 
0050 sys.outputnames    = {'Y'};
0051 sys.outputvarnames ={{'y'}};
0052 sys.outputisused   = true;
0053 end

Generated on Wed 27-Aug-2008 13:30:29 by m2html © 2003