lqgoptm.m
来自「数字通信第四版原书的例程」· M 代码 · 共 25 行
M
25 行
%
%LQGOPT1 Function to optimize LQG example using least squares
%
% See the file LQGCOST to see how the cost function is derived.
% Copyright (c) 1990-94 by The MathWorks, Inc.
% Load data for model
if ~exist('a')
lqgdata
end
% Open scope
open_system('lqgopt/Scope')
% Initial guesses at feedforward gain
FF = 1;
% Initial guess at state-feedback gain matrix (from LQR design)
K = [-1.13,1.07,-0.00291,-0.433,0];
% Set optimization parameters
options = [1,0.2,0.2]; % set display and termination criteria
x = leastsq('lqgcost', [K,FF], options);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?