Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

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

조회 수: 1 (최근 30일)
Mahmud Khan
Mahmud Khan 2018년 9월 20일
마감: Mahmud Khan 2018년 9월 25일
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?

채택된 답변

Mahmud Khan
Mahmud Khan 2018년 9월 25일
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.

추가 답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by