필터 지우기
필터 지우기

How do I include multiple functions in the MATLAB function block in Simulink?

조회 수: 23 (최근 30일)
I am trying to implement a code in the matlab fuction block in simulink, but the matlab code has multiple functions within it which are called multiple times. Is there a way to keep the functions or should all the code be written in a single matlab file and then implemented in the matlab function block.

채택된 답변

Ashutosh Prasad
Ashutosh Prasad 2018년 9월 14일
You can have the functions saved as separate .m files in the same directory where your model is saved.
  댓글 수: 2
naveen kumar s
naveen kumar s 2022년 3월 7일
you have told to save functions as seprate.m files (i have saved multiple functions as .m file). how these functions can be called to simulink model (A single MATLAB function block).
help is appreciated.

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

추가 답변 (0개)

카테고리

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