I need to use a PWork vector in my S-Function. However, I am not able to find any useful information or a simple example in the documentation regarding the same.
MATLAB: Is there an example that explains how to use a PWork vector in an S-function in Simulink 7.3 (R2009a)
pworksimulink
Related Question
- Does ssGetInputPortSignal fail when called from an S-function’s mdlUpdate method in Simulink 7.4 (R2009b)
- Does simulating the model containing a compiled S-Function result in unexpected behavior in Simulink 7.3 (R2009a)
- How to work with static or global variables in CMEX S-functions? What are work vectors
- Can I have PWork vector available in InitializeSampleTimes and SetWorkWidths function calls in the C MEX S function in Simulink 7.6 (R2010b)
- Is there a different syntax in the documentation for the S-function callback method mdlSetDefaultPortDimensionInfo in Simulink 6.0 (R14) and the example listed in the reference sfun_matadd.c
Best Answer