Helping adding Tittle to Plot (multititle)
显示 更早的评论
Hello,
I have a contour plot and i need a title like that for it:
"my title" variable1 variable2
My title is a character string always the same, but variable1 and variable2 change with every plot.
I have tried this:
title('my title', variable1, variable2);
But it did not work.
Error in ==> title at 55
set(h, 'String', string, pvpairs{:});
I also want to add units to the colourbar and a legend
Thank you very much!
采纳的回答
更多回答(1 个)
Julian Hapke
2015-1-5
title(['my title' var1 var2])
depending on the variable type, you may have to convert to string and add separators like whitespace when concatenating.
类别
在 帮助中心 和 File Exchange 中查找有关 Title 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!