I can't get the last set of strings to stay on the same line as the variable i just inserted. I've tried [] {} and () brackets with no luck.
ThisNumber = 50;x = [1:200];Wave1 = sin(x);Wave2 = cos(x);plot(Wave1,Wave2)title({'This is the first line','The total size of this is' int2str(ThisNumber) 'cm'})
This is the output
This is the first lineThe total size of this is50cm
I need it to look like
This is the First LineThe total size of this is 50cm
Best Answer