How do i compare more than two simscape simulations runs?
조회 수: 1 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
답변 (1개)
Sivapriya Srinivasan
2023년 6월 19일
편집: Sivapriya Srinivasan
2023년 6월 19일
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');
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Logging에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!