系统辨识 递推最小二乘辨识 matlab仿真实验

A. The selected model

The system model:
在这里插入图片描述

B. Identification algorithm used

1.Recursive least squares identification. 2.Recursive least square identification with forgetting factor: Take the forgetting factor
在这里插入图片描述

clear all
close all
clc
a=[1 -1.3 0.5]';b=[0.8 0.3]';d=3;  %实际系统参数与纯迟延
na=length(a)-1;nb=length(b)-1;  %%na,nb 为输出输入系数矩阵 A,B 的阶数
L=2000;%仿真长度
uk=zeros(d+nb,1);yk=zeros(na,1);  %输入输出初始化
yk_m=zeros(na,1); %模型输出
u=randn(L,1);  %输入信号,采用方差为1的白噪声序列
xi=sqrt(0.1)*randn(L,1);  %干扰信号,采用方差为0.1的白噪声序列

thetae_1=zeros(na+nb+1,1);  %参数初值
P=10^6*eye(na+nb+1
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值