why clear MEX needed?
이전 댓글 표시
Hello Mathworks,
I am currently working with one Simulink model which has S-Function with .mexw64 file. Now when I run my model first time, I am getting correct result. But after than when ever I run Simulink model, the output is always zero. I have tried to check that after first Simulation, is there any new varible or anything which will be created that makes my output zero for every simulation after the first one?. But ther is not (I have checked that in MATLAB Workspace). Then when I use clear mex command in MATLAB and then tried to simulate the Simulink model 2nd time then it works. I dont know what exactly this command does? If it clears the mex then shouldnt it be in the workspace just like when we use command clearvars .. to clear specific variable?
If after 1st Simulation, MATLAB by default stores a memory to mex then where that can be seen? I mean what clears or delete clear mex command?
Any help would be appreciated.
Best Regard Jim
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Simulink Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!