Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to put a user designed function in a simulink block

조회 수: 2 (최근 30일)
Jonathan Pulman
Jonathan Pulman 2014년 3월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Pourya Alinezhad
Pourya Alinezhad 2014년 3월 2일
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