Hello, I have three XY graphs in Simulink. Still couldn't plot all three together. Please, if you have any idea.
Also, I have z parameter, but I see there is no 3D plotting block in Simulink, any solution for this?
Lastly, from Matlab program I have a set of values. In Simulink block I have to use one parameter of the set at each time run. I was trying to use Matlab Function block, but still no result.
Thanks in advance!

답변 (1개)

Walter Roberson
Walter Roberson 2022년 9월 28일

0 개 추천

XY Graphs are specifically documented to open a different window for each block, and only permit scalar X and scalar Y. But you can see the File Exchange https://www.mathworks.com/matlabcentral/fileexchange/75379-multiple-xy-graph?s_tid=srchtitle_xygraph_4
If you do not need rapid acceleration, then you can use MATLAB Function Block and coder.extrinsic() the names of the graphics routines.
For setting a block parameter from MATLAB you can set_param(). But see https://www.mathworks.com/matlabcentral/answers/1653710-global-variable-in-simulink#comment_2009495 for how to create global variables that Simulink can use.

카테고리

도움말 센터File Exchange에서 Event Functions에 대해 자세히 알아보기

질문:

2022년 9월 28일

답변:

2022년 9월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by