|
Hello!
Recently, I needed to update a level-1 m-file s-function to a level-2 equivalent. Both (level-1 and level-2) work exactly the same, however the level-2 is much slower. For instance, the update (of the level-2) is about 50% slower.
First I thought that something was wrong with the my code. However, now it starts to be clear that the level-2 m-file s-functions manage the inputs and parameters much slower than the level-1 s-functions. Specially, when I found the same thing happens for the demos provided with matlab: the unit delay "msfcn_unit_delay.m" is near three times slower than "sfundsc2.m".
So, is there any solution to make level-2 m-file s-functions run as fast as level? Or is this speed problem related with my matlab version (R2007a)?
Thanks for the help.
|