我是靠谱客的博主 整齐蜜蜂,这篇文章主要介绍MATLAB----生成系统离散序列,现在分享给大家,希望可以做个参考。

在这里插入图片描述

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% The program is to generate the discrete sequence for a system. clear all; close all; q = 0.1; delta_t = 0.1; N = 1000; M = 5; w_unit = randn(M,N); % zero mean unit white noise sequence q_k = sqrt(q*delta_t); w_k = q_k*w_unit; % generate the discrete white noise with the variance of q_k x(:,1) = [0 0 0 0 0]; % initial value of state x for i = 2:N x(:,i) = x(:,i-1)+w_k(:,i-1); end t = (1:N)*delta_t; plot(t,x(1,:),'ko-',t,x(2,:),'kx-',t,x(3,:),'k*-',t,x(4,:),'k-.',t,x(5,:),'k'); xlabel('itfontname{Times New Roman}trm(s)'); ylabel('itfontname{Times New Roman}xrm(ittrm)');grid

最后

以上就是整齐蜜蜂最近收集整理的关于MATLAB----生成系统离散序列的全部内容,更多相关MATLAB----生成系统离散序列内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(71)

评论列表共有 0 条评论

立即
投稿
返回
顶部