MATLAB: Bad Handle Error

gui simulink blocks-functionsimulation

Hi, what is bad handle error refer to? In an s-function code I always have to save the m-file to get it running again or this error confronting me. Any ideas?

Best Answer

What is the exact error message? Guessing from your description, it might mean that the S-function block is not able to execute the MATLAB-file for some reason. Perhaps you are running the model outside of the directory where the MATLAB-file is present? Have you added the file to the MATLAB path?
Related Question