필터 지우기
필터 지우기

How to use vision.X functions in simulink?

조회 수: 2 (최근 30일)
wenjin
wenjin 2014년 3월 14일
댓글: wenjin 2014년 3월 16일
How to to use vision.X functions in Matlab Function which is a Simulink graphic block?

채택된 답변

Jacob Halbrooks
Jacob Halbrooks 2014년 3월 14일
From Using System objects in Simulink:
You can include System object™ code in Simulink® models using the MATLAB Function block. Your function can include one or more System objects. Portions of your system may be easier to implement in the MATLAB® environment than directly in Simulink. Many System objects have Simulink block counterparts with equivalent functionality. Before writing MATLAB code to include in a Simulink model, check for existing blocks that perform the desired operation.
For an example of the type of code to write in the function, try System objects in MATLAB Code Generation. That page shows an example of a function that uses a System object and is suitable for use with MATLAB Coder. That same style of function should also work with the MATLAB Function block.
For an example of a MATLAB Function block using a System object, see this blog post .
  댓글 수: 1
wenjin
wenjin 2014년 3월 16일
Thanks Jacob,this is exactly what I wanted. :)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by