-
大小: 10KB文件类型: .rar金币: 2下载: 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经典的视觉显著性检测代码
- 下一篇:通信原理课程设计 扩频通信
相关资源
- KF+EKF matlab程序实现
- 卡尔曼滤波MATLAB代码
- 基于卡尔曼滤波的三种经典室内定位
- 基于卡尔曼滤波的PID控制
- MATLAB在卡尔曼滤波器中应用的理论与
- 卡尔曼滤波基础及matlab仿真程序-王可
- matlab实现的人体跟踪kalman滤波
- 卡尔曼滤波(卡尔曼滤波理论与实践
- 集合卡尔曼滤波算法-数据同化的经典
- 基于卡尔曼滤波的目标跟踪算法-官方
- Kalman Filtering - Theory and Practice Using M
- 改进的自适应卡尔曼滤波算法
-
直流无刷电机matlab/simuli
nk仿真模型 - 卡尔曼滤波理论与实践MATLAB版第四版
- 电力电子技术综合作业-含MATLAB串联
- 卡尔曼滤波原理及应用 MATLAB仿真pd
- 卡尔曼滤波原理及应用-黄小平pdf版
- 《卡尔曼滤波原理及应用MATLAB仿真》
- 卡尔曼滤波及原理黄小平随书程序
- 基于扩展卡尔曼滤波相关期刊和毕业
- 卡尔曼滤波原理及应用 matlab仿真
- 卫星定位-卡尔曼滤波-MATLAB程序
- 卡尔曼滤波原理及应用-MATLAB仿真随书
- 卡尔曼滤波原理及matlab仿真含程序
- 卡尔曼滤波原理及应用 MATLAB仿真pd
- 《卡尔曼滤波原理及应用-MATLAB仿真》
- 卡尔曼滤波原理及应用-黄小平pdf版
- 13811540_卡尔曼滤波原理及应用MATLAB仿
- 卡尔曼滤波器的原理以及在matlab中的
- 卡尔曼滤波原理及应用:MATLAB仿真.
评论
共有 条评论