-
大小: 10KB文件类型: .rar金币: 1下载: 0 次发布日期: 2021-06-10
- 语言: Matlab
- 标签:
资源简介
将kalman_filter.m拷贝到MATLAB的根目录下,用simulink打开kalman_ghx运行即可!
代码片段和文件信息
function kalman_filter(block)
%MSFUNTMPL A template for an M-file S-function
% The M-file S-function is written as a MATLAB function with the
% same name as the S-function. Replace ‘kalman_filter‘ with the name
% of your S-function.
%
% It should be noted that the M-file S-function is very similar
% to Level-2 C-Mex S-functions. You should be able to get more
% information for each of the block methods by referring to the
% documentation for C-Mex S-functions.
%
% Copyright 2003-2006 The MathWorks Inc.
% $Revision: 1.1.6.13 $
%%
%% The setup method is used to setup the basic attributes of the
%% S-function such as ports parameters etc. Do not add any other
%% calls to the main body of the function.
%%
setup(block);
%endfunction
%% Function: setup ===================================================
%% Abstract:
%% Set up the S-function block‘s basic characteristics such as:
%% - Input ports
%% - Output ports
%% - Dialog parameters
%% - Options
%%
%% Required : Yes
%% C-Mex counterpart: mdlInitializeSizes
%%
function setup(block)
% Register number of ports
block.NumInputPorts = 2;
block.NumOutputPorts = 1;
% Setup port properties to be inherited or dynamic
block.SetPreCompInpPortInfoToDynamic;
block.SetPreCompOutPortInfoToDynamic;
% Override input port properties
block.InputPort(1).DatatypeID = 0; % double
block.InputPort(1).Complexity = ‘Real‘;
block.InputPort(2).DatatypeID = 0; % double
block.InputPort(2).Complexity = ‘Real‘;
% Override output port properties
block.OutputPort(1).DatatypeID = 0; % double
block.OutputPort(1).Complexity = ‘Real‘;
% Register parameters
block.NumDialogPrms = 0;
%block.DialogPrmsTunable = {‘Tunable‘‘Nontunable‘‘SimOnlyTunable‘};
% Register sample times
% [0 offset] : Continuous sample time
% [positive_num offset] : Discrete sample time
%
% [-1 0] : Inherited sample time
% [-2 0] : Variable sample time
block.SampleTimes = [0 0];
%% -----------------------------------------------------------------
%% Options
%% -----------------------------------------------------------------
% Specify if Accelerator should use TLC or call back into
% M-file
block.SetAccelRunOnTLC(false);
%% -----------------------------------------------------------------
%% The M-file S-function uses an internal registry for all
%% block methods. You should register all relevant methods
%% (optional and required) as illustrated below. You may choose
%% any suitable name for the methods and implement these methods
%% as local functions within the same file.
%% -----------------------------------------------------------------
%% -----------------------------------------------------------------
%% Register methods called during update diagram/compilation
%% -----------------------------------------------------------------
%%
%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 12006 2009-05-19 14:24 基于Simuli
文件 23351 2009-05-25 23:51 基于Simuli
文件 70 2009-08-02 21:07 基于Simuli
目录 0 2009-08-02 21:06 基于Simuli
----------- --------- ---------- ----- ----
35427 4
- 上一篇:Itti经典的视觉显著性检测代码
- 下一篇:通信原理课程设计 扩频通信
相关资源
- UKF 无迹卡尔曼滤波源程序 matlab
- 使用扩展卡尔曼滤波训练的神经网络
- IMM算法卡尔曼滤波matlab仿真
-
SIMUli
nk仿真2DPSK通信过程 - 卡尔曼滤波跟踪视频目标matlab程序
- UKF无迹卡尔曼滤波算法matlab代码
- 利用matlab实现的简单的基于卡尔曼滤
-
SPWM Simuli
nk仿真程序 - 粒子滤波代码与卡尔曼做比较
-
SIMUli
nk仿真实现LDPC信道编码 - 电力电子、电机控制系统仿真模型洪
- 当前模型卡尔曼滤波算法资料
-
模糊PID控制器的simuli
nk模型 -
OQPSK调制解调器Simuli
nk仿真 - boost电路建模与仿真闭环计算
- 基于卡尔曼滤波的机器人slam导航算法
- 自动驾驶多目标检测.7z
- 平方根无迹卡尔曼滤波算法程序
- TDOA/AOA定位的扩展卡尔曼滤波定位算法
- 小波变换(去噪融合)和卡尔曼滤波
- 自适应卡尔曼滤波器的matlab实现
- 卡尔曼滤波用于自由落体运动目标跟
- 3.19 基于Kalman滤波的目标跟踪.rar
- 基于背景差分法和卡尔曼滤波器的追
- EKF扩展卡尔曼滤波程序
- 三相桥式有源逆变仿真
-
单相桥式逆变器单周期控制simuli
n -
ADRC自抗扰控制simuli
nk仿真程序1685 - TDOA_AOA定位的扩展卡尔曼滤波算法MA
- 卡尔曼滤波在雷达目标跟踪中的应用
评论
共有 条评论