Hi,
I have developed a rather large simulink model with simulink functions and also some matlab functions. In an previous approach I had to use some variable length vectors which I defined as such, however I was able to get rid of all of them. Occasionally (in seemingly random cases) I get an error that I can not track down further and do not understand where it appears and originates and under what circumstances.
It reads: "An error occurred while running the simulation and the simulation was terminated
Caused by:
If X is a variable-length vector, it must not have length 1: scalar X must be fixed-size.
Component:Simulink | Category:Block error -Open-"
If I click on open, nothing happens unfortunately.
I would greatly appreciate any help to locate this tiny bug that crashes the entire simulation or approaches on how this could be located eg with the debugger. I had no luck with that.
Thanks,
Vincenz