How do i compare more than two simscape simulations runs?

1 Ansicht (letzte 30 Tage)
Alexandru Zamfira
Alexandru Zamfira am 29 Mai 2023
I am trying to analyze 3 simscape data nodes by comparing them in the same graph, but it only works for 2 data nodes.
Any help please?

Antworten (1)

Sivapriya Srinivasan
Sivapriya Srinivasan am 19 Jun. 2023
Bearbeitet: Sivapriya Srinivasan am 19 Jun. 2023
Hello,
You can try to create two or more separate subplots in the same figure window using the subplot MATLAB function
You can also use the “hold on” command to hold the current plot while plotting another data node.
Example: for plotting 3 separate subplots
This will create three plots stacked vertically within the same figure window.
subplot(3,1,1);
plot(data_node_1);
title ('Data Node 1');
subplot(3,1,2);
plot(data_node_2);
title('Data Node 2');
subplot(3,1,3);
plot(data_node_3);
title('Data Node 3');
xlabel('Time');

Kategorien

Mehr zu 2-D and 3-D Plots 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