Add subtitle to the plot?

17 ビュー (過去 30 日間)
Lee
Lee 2022 年 7 月 28 日
コメント済み: Lee 2022 年 7 月 28 日
Adding subtitle to the plot but I have error?
can anyone tell me why this msg apperaed
  1 件のコメント
Lee
Lee 2022 年 7 月 28 日
yes thanks , but also when I corrected the graph appeared without subtitle
so what can I do

サインインしてコメントする。

採用された回答

Adam Danz
Adam Danz 2022 年 7 月 28 日
編集済み: Adam Danz 2022 年 7 月 28 日
If you're using MATLAB R2020b or later, use the subplot function.
If you're using MATLAB prior to that release, you could add a second row to your title using
title({'main','secondary'})
Your error message mentioned "suptitle" suptitle used to be a function in the Bioinformatics Toolbox. It created a super-title over a group of subplot. That can be acheived using in modern Matlab by adding the title to a TiledChartLayout object. Also see example in the documentation.
figure()
tcl = tiledlayout('flow');
nexttile; nexttile; nexttile; nexttile;
title(tcl, 'Super title')
  5 件のコメント
Lee
Lee 2022 年 7 月 28 日
Oh my dear , I really appreciate that.
Big thanks

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Find more on 2-D and 3-D Plots in Help Center and File Exchange

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by