91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 10KB
    文件類型: .c
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-01-05
  • 語言: Matlab
  • 標(biāo)簽: svpwm??s-function??

資源簡介

用于matlab的svpwm的s函數(shù),用mex編譯后就可使用

資源截圖

代碼片段和文件信息

/*
?*?sfuntmpl_basic.c:?Basic?‘C‘?template?for?a?level?2?S-function.
?*
?*??-------------------------------------------------------------------------
?*??|?See?matlabroot/simulink/src/sfuntmpl_doc.c?for?a?more?detailed?template?|
?*??-------------------------------------------------------------------------
?*
?*?Copyright?1990-2002?The?MathWorks?Inc.
?*?$Revision:?1.27.4.2?$
?*/


/*
?*?You?must?specify?the?S_FUNCTION_NAME?as?the?name?of?your?S-function
?*?(i.e.?replace?sfuntmpl_basic?with?the?name?of?your?S-function).
?*/

#define?S_FUNCTION_NAME??SVPWM
#define?S_FUNCTION_LEVEL?2
#define?PI?3.141592653
#define?Np?4

/*
?*?Need?to?include?simstruc.h?for?the?definition?of?the?SimStruct?and
?*?its?associated?macro?definitions.
?*/
#include?“simstruc.h“
#include?“math.h“


/*?Error?handling

評論

共有 條評論