Simscape Node Plotting - can you overlay two data sets?

조회 수: 6 (최근 30일)
Aashish Dalal
Aashish Dalal 2022년 11월 2일
답변: Nilanshu Ranjan 2022년 11월 4일
Is there a way to overlay two simscape data node points on the same plot? There's simscape.logging.plot(Node.value.parameter) but if I have another set that I want to compare to, this yields a seperate plot.
Any thoughts?

답변 (1개)

Nilanshu Ranjan
Nilanshu Ranjan 2022년 11월 4일
I understand that you want to overlay the plot for two simscape data nodes.
For achieving this, you can utilize the cell array to pass multiple parameters to simscape.logging.plot() function as:
simscape.logging.plot({simlog1.TS.x simlog2.TS.x},'names',{'Run1' 'Run2'});
Refer to this documentation for more information.

카테고리

Help CenterFile Exchange에서 Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by