⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lqgoptm.m

📁 数字通信第四版原书的例程
💻 M
字号:
%
%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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -