How do I include multiple functions in the MATLAB function block in Simulink?
15 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Aditya Shanmugam
am 11 Sep. 2018
Kommentiert: naveen kumar s
am 7 Mär. 2022
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.
0 Kommentare
Akzeptierte Antwort
Ashutosh Prasad
am 14 Sep. 2018
You can have the functions saved as separate .m files in the same directory where your model is saved.
2 Kommentare
naveen kumar s
am 7 Mär. 2022
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Sources finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!