%You can create a multiline tile using either a cell array or a string array. Each element in the array corresponds to a separate line of text.
%Here’s how to do it with a cell array:
plot(1:10)
title({'You can do it','with a cell array'})
%Here’s how to do it with a string array:
plot(1:10)
title(["You can do it","with a string array too"])
%If you’re looking to create a subtitle, then starting in R2020b, you can pass a second line of text to the title function to create a subtitle.
title('A Nifty Title','A Clever Subtitle'])
%Or you can call the title and subtitle functions separately.
title('A Nifty Title')
subtitle('A Clever Subtitle')
%Credit to 'the cyclist'