Info
この質問は閉じられています。 編集または回答するには再度開いてください。
How to put a user designed function in a simulink block
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
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 .....
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!