How to plot a Structure with Time?

조회 수: 19 (최근 30일)
Fernando Belda
Fernando Belda 2021년 11월 4일
답변: Yongjian Feng 2021년 11월 4일
Hi! I have saved some data from a simulink's scope in a "Structure with Time" variable. I know that to plot the different signals the statement is:
>> plot(VarName.time, [VarName.signals.values])
However I would also like to plot the name of each signal, which is also saved in the variable in VarName.signals.title
Does someone know how to do this?
Thank you for your attention!
Best regards
Fernando Belda

답변 (1개)

Yongjian Feng
Yongjian Feng 2021년 11월 4일
Add a title to your plot
title(VarName.signals.title)

카테고리

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

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by