Hi Andreas,
Unfortunately, It is not possible to do this without the use of Embedded Coder. Here is an example of how one would go about doing it given the proper set of toolboxes:
~Zack
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!