3D plot in Simulink
조회 수: 4 (최근 30일)
이전 댓글 표시
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!
댓글 수: 0
답변 (1개)
Walter Roberson
2022년 9월 28일
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.
댓글 수: 0
참고 항목
카테고리
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!