Never mind. I found out what the problem was. The parameters to the functions were slightly different. As such, the outputs were slightly different too.
Info
この質問は閉じられています。 編集または回答するには再度開いてください。
M-file s-function and c-file s-function outputs don't match. Why?
1 回表示 (過去 30 日間)
古いコメントを表示
I have a Simulink model that generates a square wave and passes it through two different s-functions and then plots the outputs. One s-function uses a m-file while the other s-function uses an equivlanet c code (turned into a mex file). Why are the outputs not the same? Is that normal?
0 件のコメント
採用された回答
その他の回答 (0 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!