When I start the simulation of the model in Simulink, after a few seconds the matlab crash and this error appears:
"Unhandled exception at 0x00007FFBE4291CE0 (ntdll.dll) in MATLAB.exe: 0xC0000374: Uma pilha foi danificada (parameters: 0x00007FFBE42CED40).
In english the phrase "Uma pilha foi danificada" means "A battery has been damaged" or "Heap corruption".
I don't know how this means and the way to solve this.
Help me please !!