Add subtitle to the plot?

7 views (last 30 days)
Lee on 28 Jul 2022
Commented: Lee on 28 Jul 2022
Adding subtitle to the plot but I have error?
can anyone tell me why this msg apperaed
  1 Comment
Lee on 28 Jul 2022
yes thanks , but also when I corrected the graph appeared without subtitle
so what can I do

Sign in to comment.

Accepted Answer

Adam Danz
Adam Danz on 28 Jul 2022
Edited: Adam Danz on 28 Jul 2022
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
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.
tcl = tiledlayout('flow');
nexttile; nexttile; nexttile; nexttile;
title(tcl, 'Super title')
Lee on 28 Jul 2022
Oh my dear , I really appreciate that.
Big thanks

Sign in to comment.

More Answers (0)


Community Treasure Hunt

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

Start Hunting!