time position in graphic
1 次查看(过去 30 天)
显示 更早的评论
i would like to know how can i display my time position instead of title with code num2str () '%4i' in bottom right. The data comes from an excel table.
0 个评论
采纳的回答
Chad Greene
2021-5-5
This question is pretty vague, but here's pi displayed at the bottom right corner of a plot:
txt = text(1,0,num2str(pi,'%4i'),'horiz','right','vert','bot','units','normalized');
3 个评论
Chad Greene
2021-5-5
For the Excel question I recommend opening a separate question specifically about that part of your question.
To add words to the text, put it in square brackets, like this:
txt = text(1,0,['Easy as ',num2str(pi,'%4i')],'horiz','right','vert','bot','units','normalized');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spreadsheets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!