Dear all, I have a dSpace and the related software on a Windows XP, I use Simulink (Matlab R2011b) to build the model and then I use dSpace ControlDesk to change parameters and see results. I never had problems in compiling but yesterday I added a Matlab Function in the Simulink model and after this I got an error. I tried to change the function and I discovered that up to line 6 of the Matlab Function everything works; if I had line 7 i get the error (even if I add line 9). It seems that I cannot access variable "a" like a(1) , a(2),... or I cannot multiply a vector. I add the screenshot of my function and of the error in Matlab, hoping that you can help me.
Thank you, Enrico.