Bus signals from simulink functional block
1 回表示 (過去 30 日間)
古いコメントを表示
Hey everyone,
I am trying to get bus data in and out of matlab function block in simulink. Here's a simple model I have tried to test to it out:
The function is defined as :
function y = fcn(b1, b2)
y.b1 = b1 - b2;
y.b2 = b1 + b2;
I have created a simulinkBus; "x" as shown in the image below:
But I keep getiing this error, when I run my model:
What am I doing wrong here?
0 件のコメント
回答 (1 件)
Alex Alex
2021 年 11 月 2 日
look here
https://www.mathworks.com/help/simulink/ug/attach-bus-signals-to-matlab-function-blocks.html
参考
カテゴリ
Help Center および File Exchange で Interactive Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!