필터 지우기
필터 지우기

I have an existing custom matlab function that I would like to call from a simulink model. Can I do this?

조회 수: 28 (최근 30일)
A while ago, I created a custom matlab function. Now, I want to call that function from within a Simulink model. The User-Define Functions: MATLAB Function block allows me to create a new Matlab function, but how to I use it to call an existing Matlab function?

답변 (1개)

Ankitha Kollegal Arjun
Ankitha Kollegal Arjun 2017년 2월 7일
You could use one of these two blocks available in User-Defined Functions:
1. Interpreted MATLAB Function - Applies MATLAB function or expression to the input.
2. Fcn - Applies specified expression to the input. Use this only if your m-file contains a very simple expression operating on the inputs.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by