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!