-
大小: 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
- 上一篇:利用灰度共生矩陣對圖像分類
- 下一篇:軸承振動信號處理
評論
共有 條評論