⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 s_tpl.c

📁 线性调频信号通过匹配滤波器的程序 还有一些simulink仿真模型
💻 C
字号:
/* *****************************************************//*                        s_tpl                        *//* This template illustrates the structure of a        *//* C S-Function file                                   *//* Based on MathWorks template file                    *//* Copyright (c) 1990-96 by The MathWorks, Inc.        *//* All Rights Reserved                                 *//* *****************************************************/#define S_FUNCTION_NAME s_tpl#include "simstruc.h"#include "math.h"static void mdlInitializeSizes(SimStruct *S){   /* Use ssSet macros to intialize the sizes struct   */}static void mdlInitializeSampleTimes(SimStruct *S){   /* Use ssSet macros to initialize sample times and  */   /* offsets                                          */}static void mdlInitializeConditions(double *x0,                                    SimStruct *S){   /* Set the initial conditions of the S-Function     */   /* vector, pointed to by x0                         */}static void mdlOutputs(double *y, double *x, double *u,                       SimStruct *S, int tid){   /* Compute the output vector, pointed to by y       */}static void mdlUpdate(double *x, double *u, SimStruct *S,                      int tid){   /* Update the discrete states                       */}static void mdlDerivatives(double *dx, double *x,                           double *u,  SimStruct *S,                           int tid){   /* Compute the derivatives of continuous states,   */   /* pointed to by dx                                */}static void mdlTerminate(SimStruct *S){   /* Perform any end-of-simulation tasks              */}#ifdef	MATLAB_MEX_FILE #include "simulink.c"  #else#include "cg_sfun.h"   #endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -