Embedded Matlab Function blocks work by converting the written m-code-file into a so called S-Function. All parts of the code that use the so called Embedded subset language of Matlab are converted to C and compiled, and all other parts of the code (i.e. the parts that use Matlab code that is not part of the Embedded subset language) are executed by calling Matlab’s interpretive engine in the usual way.
This means that every time we use some kind of "high level" Matlab method, our embedded Matlab code reaches out to the Matlab engine. But, this is not possible while using the rapid accelerator mode!
▶️ DTube
▶️ IPFS