필터 지우기
필터 지우기

calling a standalone function to matlab function block

조회 수: 4 (최근 30일)
Ahmed Tawfeeq
Ahmed Tawfeeq 2012년 1월 27일
hi....I wonder if anyone has an idea about how to call a standalone function (like filter function or any function else which is in fact a subroutine)to matlab function block because my research needs such process....and whether matlab supports that or not? please help...thanks in advance.

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 1월 27일
You can use any of functions supported for code-generation inside a MATLAB Function block. However, if you do not plan to generate embedded C/C++ code from your Simulink model, you can declare unsupported functions using coder.extrinsic and use them in the block.
  댓글 수: 5
Kaustubha Govind
Kaustubha Govind 2012년 1월 31일
There might be downstream blocks that are specifying a continuous sample time - Simulink back-propagates that to the MATLAB Function block. I can't think of a way that you can use to directly specify the sample-time of the block.
Ahmed Tawfeeq
Ahmed Tawfeeq 2012년 2월 10일
Hi Kaustubha...I would like to thank you for your help... thankfully I could solve all problems I encountered concerning calling functions to simulink, but i stopped at the function adaptfilt.lms ...i don't know what (.)represent....thanks again.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Model Verification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by