필터 지우기
필터 지우기

How to change the number of outputs of a MATLAB function block programmatically

조회 수: 6 (최근 30일)
Hello
I am working on R2014a, I created a Matlab Function block using add_block , however I want to add outputs not by directly modifying the function (e.i function [out1,out2,out3] = MyFun(u)), but rather programmatically from the same way I created it.
Thanks in advance.

채택된 답변

Dimitris Iliou
Dimitris Iliou 2017년 6월 15일
There is a similar MATLAB Answers post on how to change the number of inputs programmatically. You can find that post in the following link:
Although the post refers to the input, the workflow to change the number of outputs is the same.

추가 답변 (1개)

Abderahmane Abdellahi
Abderahmane Abdellahi 2017년 6월 16일
Thank you guys for your answers, someone posted the answer here : https://stackoverflow.com/questions/42263697/editing-the-code-of-a-matlab-function-block-in-simulink-programmatically
but still your answers are appreciated.
Abdellahi

카테고리

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