Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How to put a user designed function in a simulink block

2 visualizaciones (últimos 30 días)
Jonathan Pulman
Jonathan Pulman el 2 de Mzo. de 2014
Cerrada: MATLAB Answer Bot el 20 de Ag. de 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

Respuestas (1)

Pourya Alinezhad
Pourya Alinezhad el 2 de Mzo. de 2014
there is a block in simulink which accepts codes.... return values of function are block outputs and the inputs are function arguments .....

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by