Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
How to put a user designed function in a simulink block
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposte (1)
Pourya Alinezhad
il 2 Mar 2014
there is a block in simulink which accepts codes.... return values of function are block outputs and the inputs are function arguments .....
0 Commenti
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!