Info
此问题已关闭。 请重新打开它进行编辑或回答。
Given a datetime plot, how to i insert a text in the plot?
1 次查看(过去 30 天)
显示 更早的评论
Hi I have a datetime plot. I want to insert a text in a specific part of the plot. Since my xaxis is no longer an integer, I am getting error while using "text".
How can i solve it?
x_p=time_select_20000(out_select(i,2):out_select(i,3));% datetime array
y_p=Alt_select_20000(out_select(i,2):out_select(i,3));%integer
plot(x_p,y_p)
i=1;
a=time_select_20000(out_select(i,2));%datetime point
b=Alt_select_20000(out_select(i,2));%integer point
n=10
str1 = sprintf('Flight level : %d',n)
text(a,b,str1)
I am getting this error
Error using text
First two or three arguments must be numeric doubles.
How do i change the datetime to satisfy this?
1 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!