Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

How to put a user designed function in a simulink block

2 Ansichten (letzte 30 Tage)
Jonathan Pulman
Jonathan Pulman am 2 Mär. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Suppose I have a simple (useless) user defined Matlab function as follows
[ outputVariable]=PulmanTestFunction (inputVariable)
for j=1:100
outputVariable=inputVariable+ j
end
Can I put this into a simulink function block? Am I trying to use MatLab and simulink together in a way that doesn't work?
Jonathan

Antworten (1)

Pourya Alinezhad
Pourya Alinezhad am 2 Mär. 2014
there is a block in simulink which accepts codes.... return values of function are block outputs and the inputs are function arguments .....

Community Treasure Hunt

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

Start Hunting!

Translated by