Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

M-file s-function and c-file s-function outputs don't match. Why?

1 vue (au cours des 30 derniers jours)
Mahmud Khan
Mahmud Khan le 20 Sep 2018
Clôturé : Mahmud Khan le 25 Sep 2018
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?

Réponse acceptée

Mahmud Khan
Mahmud Khan le 25 Sep 2018
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.

Plus de réponses (0)

Cette question est clôturée.

Produits


Version

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by