Share data between multiple c mex s-functions
问题 I am implementing several c s-functions. They have to rely on the same pointers and variables, inedependet of the current s-function. Basically I want to instantiate all variabels and pointers in one "setup" s-function (inside mdlInitialize) and then be able to use these variables an pointers in different s-functions in their mdlOutputs function. Every s-function will be written in c. I could not find any usefull hint in the mathworks help. Do you have any idea? Thanks. 回答1: There are several