资源简介
MATLAB中经典的风速建模,用于风电机组的动态仿真分析等。
代码片段和文件信息
function [sysx0strts] = wind_random(txuflag)
%SFUNTMPL General M-file S-function template
% With M-file S-functions you can define you own ordinary differential
% equations (ODEs) discrete system equations and/or just about
% any type of algorithm to be used within a Simulink block diagram.
%
% The general form of an M-File S-function syntax is:
% [SYSX0STRTS] = SFUNC(TXUFLAGP1...Pn)
%
% What is returned by SFUNC at a given point in time T depends on the
% value of the FLAG the current state vector X and the current
% input vector U.
%
% FLAG RESULT DEscriptION
% ----- ------ --------------------------------------------
% 0 [SIZESX0STRTS] Initialization return system sizes in SYS
% initial state in X0 state ordering strings
% in STR and sample times in TS.
% 1 DX Return continuous state derivatives in SYS.
% 2 DS Update discrete states SYS = X(n+1)
% 3 Y Return outputs in SYS.
% 4 TNEXT Return next time hit for variable step sample
% time in SYS.
% 5 Reserved for future (root finding).
% 9 [] Termination perform any cleanup SYS=[].
%
%
% The state vectors X and X0 consists of continuous states followed
% by discrete states.
%
% Optional parameters P1...Pn can be provided to the S-function and
% used during any FLAG operation.
%
% When SFUNC is called with FLAG = 0 the following information
% should be returned:
%
% SYS(1) = Number of continuous states.
% SYS(2) = Number of discrete states.
% SYS(3) = Number of outputs.
% SYS(4) = Number of inputs.
% Any of the first four elements in SYS can be specified
% as -1 indicating that they are dynamically sized. The
% actual length for all other flags will be equal to the
% length of the input U.
% SYS(5) = Reserved for root finding. Must be zero.
% SYS(6) = Direct feedthrough flag (1=yes 0=no). The s-function
% has direct feedthrough if U is used during the FLAG=3
% call. Setting this to 0 is akin to making a promise that
% U will not be used during FLAG=3. If you break the promise
% then unpredictable results will occur.
% SYS(7) = Number of sample times. This is the number of rows in TS.
%
%
% X0 = Initial state conditions or [] if no states.
%
% STR = State ordering strings which is generally specified as [].
%
% TS = An m-by-2 matrix containing the sample time
% (period offset) information. Where m = number of sample
% times. The ordering of the sample times must be:
%
% TS = [0 0 : Continuous sample time.
% 0 1 : Conti
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 65705 2011-08-16 20:49 风速模型\windspeedmodel_1.mdl
文件 8268 2011-08-16 20:37 风速模型\wind_random_1.m
目录 0 2012-06-04 09:59 风速模型
----------- --------- ---------- ----- ----
73973 3
相关资源
- Pattern Recognition and Machine Learning(高清
- MATLAB 编程 第二版 Stephen J. Chapman 著
- 均值滤波和FFT频谱分析Matlab代码
- 《MATLAB扩展编程》代码
- HDB3码、AMI码的MATLAB实现
- 3点GPS定位MATLAB仿真
- MATLAB数字信号处理85个实用案例精讲入
- matlab从入门到精通pdf94795
- 欧拉放大论文及matlab代码
- 跳一跳辅助_matlab版本
- 全面详解LTE MATLAB建模、仿真与实现
- MIMO-OFDM无线通信技术及MATLAB实现_孙锴
- MATLAB Programming for Engineers 4th - Chapman
- matlab 各种谱分析对比
- 分数阶chen混沌matlab程序
- 基于粒子群算法的非合作博弈的matl
- MATLAB车流仿真 包括跟驰、延误
- matlab空间桁架计算程序
- 基于MATLAB的图像特征点匹配和筛选
- DMA-TVP-FAVAR
- GPS信号的码捕获matlab代码.7z
- 一维光子晶体MATLAB仿真代码吸收率折
- newmark法源程序
- 传统关联成像、计算鬼成像matlab
- pri传统分选算法
- 摆动滚子推杆盘形凸轮设计
- 医学图像重建作业matlab源码
- Matlab实现混沌系统的控制
- 检测疲劳驾驶
- Matlab锁相环仿真-Phase Locked Loop.rar
评论
共有 条评论