a question about plot
1 次查看(过去 30 天)
显示 更早的评论
Hey, I am new to Matlab. How can I generate a capital letter "F" in a plot? Thank you!
0 个评论
回答(2 个)
Star Strider
2016-2-12
Try this:
figure(1)
plot([1 2], [3 3],'k')
hold on
plot([1 1], [1 3],'k')
plot([1 1.7], [2 2],'k')
hold off
axis([0 4 0 4])
0 个评论
Image Analyst
2016-2-12
Use text():
% Plot some data, or whatever...
plot(0:4, 'b*-')
% Put a big F on the plot
text(2, 3, 'F', 'FontSize', 30, 'Color', 'r', 'FontWeight', 'bold');
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!