3D plot in Simulink

4 次查看(过去 30 天)
Mirzobek Malikov
Mirzobek Malikov 2022-9-28
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
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.

类别

Help CenterFile Exchange 中查找有关 Interactive Model Editing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by