I have multiple images displaying in matlab plot along with titles as textual descriptions.
Some of the titles are long and are overlapping with adjacent images. So, how could i automatically adjust the titles by splitting them into multiple lines.
If you use 'hold on', you should then be able to plot on the same figure, then simply use the 'hold off' function when you're done plotting on the same graph.
Plot Multiple Lines By default, MATLAB clears the figure before each plotting command. Use the figure command to open a new figure window. You can plot multiple lines using the hold on command. Until you use hold off or close the window, all plots appear in the current figure window.
Use a cell array of strings as input:
title({'hello','world'})
each will show on a separate line.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With