Simscape Node Plotting - can you overlay two data sets?

1 visualización (últimos 30 días)
Aashish Dalal
Aashish Dalal el 2 de Nov. de 2022
Respondida: Nilanshu Ranjan el 4 de Nov. de 2022
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?

Respuestas (1)

Nilanshu Ranjan
Nilanshu Ranjan el 4 de Nov. de 2022
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.

Categorías

Más información sobre Data Logging en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by