How to change the number of outputs of a MATLAB function block programmatically
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abderahmane Abdellahi
am 12 Jun. 2017
Beantwortet: Abderahmane Abdellahi
am 16 Jun. 2017
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.
0 Kommentare
Akzeptierte Antwort
Dimitris Iliou
am 15 Jun. 2017
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.
0 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Simulink Functions finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!