Prev: toeplitz matrix
Next: sir i want matlab code for TCSC
From: Piotr S on 11 May 2010 06:09 Hi, Can anyone tell me how to create an S-function which would accept enumerated data type as one of its inputs? If you could tell me how to do this from 'Legacy code tool' that would just be perfect. Here's an example to make the question clearer: ______________________________________ *** MyCFunction.h *** typedef enum { Value1 = 0, Value2 } MyEnumeration; float MyFunction(MyEnumeration myEnum, float myFloat); _______________________________________ _______________________________________ *** MyCFunction.h *** #include "MyCFunction.h" float MyFunction(MyEnumeration myEnum, float myFloat) { // some functionality here return myFloat; } ________________________________________
|
Pages: 1 Prev: toeplitz matrix Next: sir i want matlab code for TCSC |