Fix Matlab static interface generation
Matlab static generation was not generated as stated in #1777
This patch would not be possible without the help of @yage99 !