MATLAB Function Versus MATLAB S-Function (processing speed)
조회 수: 2 (최근 30일)
이전 댓글 표시
Simulink
Why block MATLAB FUNCTION is slower than block MATLAB S-Function in may model?
The task is the same.
댓글 수: 0
채택된 답변
Kaustubha Govind
2013년 2월 19일
When you say "MATLAB Function" block, do you mean the Embedded MATLAB Function block (the block icon has the MathWorks logo on it), or the Interpreted MATLAB Function block? Also, it would help if you post your code. Some functions (like FFT) may be faster if run in interpreted mode in MATLAB than with the Embedded MATLAB Function block, which generates C-code from the MATLAB functions. Some MATLAB implementations are highly optimized, and hence perform better than the generated C code.
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!