How to plot a Structure with Time?

17 ビュー (過去 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 Center および File ExchangeScopes 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