Filter löschen
Filter löschen

3D plot in Simulink

4 Ansichten (letzte 30 Tage)
Mirzobek Malikov
Mirzobek Malikov am 28 Sep. 2022
Beantwortet: Walter Roberson am 28 Sep. 2022
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!

Antworten (1)

Walter Roberson
Walter Roberson am 28 Sep. 2022
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.

Kategorien

Mehr zu Interactive Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by