I am trying to call a function (can be matlab function or a simlink function) from a stateflow in one subsystem, the function must be located in another subsystem as shown below:
The first subsystem will have a stateflow which calls this function. It doesn't really matter if this function is a M-script, currently I do not know how to work around with matlab function (mscript) as it needs the arguments of the functions as inputs.
Is there any workaround for this problem?