Evaluate function real-time in Simulink
1 次查看(过去 30 天)
显示 更早的评论
Hy,
I have the following function in Simulink, which i would like to evaluate for all X, Y values in real-time.
The inputs for X and Y are real time values, changing with sample time, PX and PY are column vectors, which i am searching the optimal point in, LAD is a constant value.
The function searches the point exactly as far from X, Y as the value of LAD and would give it back through GX and GY in real time, but shows me the following error:
The function ports are shown here:
How can I get this done?
Thank you for your help in advance.
Gergely Hunyady
0 个评论
回答(1 个)
Fangjun Jiang
2019-8-27
Open the MATLAB function, click "Edit Data", specify the "size" of output GX and GY. Most common is the change from "-1" (inherient) to "1" (scalar).
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!