如何在matlab加标注中为图形加标注以及文字说明

豆丁微信公众号
君,已阅读到文档的结尾了呢~~
MATLAB绘图h4图形,h4,h,h第3章,第3章,绘图 h,反馈意见
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
MATLAB绘图h4
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='http://www.docin.com/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口Matlab plot画图怎样在图中添加注释_百度知道
Matlab plot画图怎样在图中添加注释
我有更好的答案
出图后在图片上有工具栏,上面有个“Insert”项(插入)。点击后下面有“Ellipse”就是椭圆的意思。你就可以随便在图片上插入椭圆形状了。。
采纳率:50%
为您推荐:
其他类似问题
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
网易考拉推荐
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
MATLAB 提供了以下机制来满足这个要求:在坐标轴顶端添加一个标题;添加一个图例;添加坐标轴标签;在图形的任意位置添加箭头和线条;添加基本数据统计绘图,例如最大值、最小值和均值。下面一一介绍这些添加方法。在坐标轴的顶端添加一个标题1,添加标题添加标题 一种方法是通过对图像的编辑进行 另外一种方法是通过title命令执行。2,添加图例使用方法一:图像操作界面方法二:使用legend命令。3,添加坐标轴标签坐标轴标签的创建和编辑同样有三种方式:Insert 菜单方式、图形编辑方式和函数方式。用户可以使用xlabel、ylabel、zlabel 三个函数来分别添加或编辑x、y、z 轴的标签。4,添加自由格式的文本注释使用text或gtext函数可以在图形的任意位置添加文本注释。如果使用text函数,用户必须使用x、y坐标值定义文本在图形中的位置。text & Text annotation.& & text(X,Y,'string') adds the text in the quotes to location (X,Y)& & on the current axes, where (X,Y) is in units from the current& & plot. If X and Y are vectors, text writes the text at all locations& & given. If 'string' is an array the same number of rows as the& & length of X and Y, text marks each point with the corresponding row& & of the 'string' array.&& & text(X,Y,Z,'string') adds text in 3-D coordinates.& gtext('string') displays the graph window, puts up a ---等待鼠标操作。& & cross-hair, and waits for a mouse button or keyboard key to be& & pressed. &The cross-hair can be positioned with the mouse (or& & with the arrow keys on some computers). &Pressing a mouse button& & or any key writes the text string onto the graph at the selected& & location.&5. 添加箭头和线条1.用程序画:text(-pi/4,sin(-pi/4),'\leftarrow sin(-\pi\div4)', 'HorizontalAlignment','left')2.鼠标直接在figure里面画:选择Insert-arrow,text arrow等等6,添加基本数据统计绘图举例来说明数据统计绘图的使用方法。
首先要装入数据并绘制,例如美国人口普查结果显示的美国历史人口数据:
load census
plot(cdate,pop,'+')
然后在Tools 菜单下选择Data Statistics 选项,显示如图4-20 所示的数据集统计结果。在
该对话框中选择所需的数据统计结果,图形中就会出现该统计结果图形。然后用户可以为该
图形添加一个图例。
阅读(9249)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
loftPermalink:'',
id:'fks_',
blogTitle:'Matlab中为图形添加注释',
blogAbstract:'当创建描述性图形时,用户可能会希望为图形添加一些注释来帮助用户理解数据。MATLAB 提供了以下机制来满足这个要求:在坐标轴顶端添加一个标题;添加一个图例;添加坐标轴标签;在图形的任意位置添加箭头和线条;添加基本数据统计绘图,例如最大值、最小值和均值。下面一一介绍这些添加方法。在坐标轴的顶端添加一个标题1,添加标题添加标题 一种方法是通过对图像的编辑进行 另外一种方法是通过title命令执行。2,添加图例使用方法一:图像操作界面方法二:使用legend命令。',
blogTag:'matlab,坐标轴',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:3,
publishTime:7,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:2,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}当前位置:
&matlab7如何在图中添加文字
matlab7如何在图中添加文字
作者 yxh821011
以前用6.5时,图形窗口有一个按钮A,可以点击添加文字,现在用7.0,不知怎么用了,请教大家哦!
TEXT& &Text annotation.
& & TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)
& & on the current axes, where (X,Y) is in units from the current
& & plot. If X and Y are vectors, TEXT writes the text at all locations
& & given. If 'string' is an array the same number of rows as the
& & length of X and Y, TEXT marks each point with the corresponding row
& & of the 'string' array.
& & TEXT(X,Y,Z,'string') adds text in 3-D coordinates.
& & TEXT returns a column vector of handles to TEXT objects, one
& & handle per text object. TEXT objects are children of AXES objects.
& & The X,Y pair (X,Y,Z triple for 3-D) can be followed by
& & parameter/value pairs to specify additional properties of the text.
& & The X,Y pair (X,Y,Z triple for 3-D) can be omitted entirely, and
& & all properties specified using parameter/value pairs.
& & Execute GET(H), where H is a text handle, to see a list of text
& & object properties and their current values. Execute SET(H) to see a
& & list of text object properties and legal property values,
text(X,Y,'string')
X,Y,是添加文字的横、纵坐标点,'string'是你要加入的文字,用单引号括起来
引用回帖:: Originally posted by 图强定位 at
text(X,Y,'string')
X,Y,是添加文字的横、纵坐标点,'string'是你要加入的文字,用单引号括起来 请问X和Y一般怎么确定呢,我试了几次X和Y的值,都没有显示任何结果啊
引用回帖:: Originally posted by wurongjun at
TEXT& &Text annotation.
& & TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)
& & on the current axes, where (X,Y) is in units from the current
& & plot. If X and Y are vectors, TEX ... 看不懂,解释一下
引用回帖:: Originally posted by yxh821011 at
请问X和Y一般怎么确定呢,我试了几次X和Y的值,都没有显示任何结果啊... 你可以先在命令窗口单独试一下加入文字
text(0.5,0.7,'some words')
0.5是横坐标 0.7是纵坐标 你改一下x和y的数字,回车看图形有什么改变。你就明白了。
下次自己加的时候算好需要加文字的坐标,在套用这个格式就可以了。
如果是三维的就以此类推
引用回帖:: Originally posted by 图强定位 at
你可以先在命令窗口单独试一下加入文字
text(0.5,0.7,'some words')
0.5是横坐标 0.7是纵坐标 你改一下x和y的数字,回车看图形有什么改变。你就明白了。
下次自己加的时候算好需要加文字的坐标,在套用这个格式 ... 谢谢你的耐心解释
引用回帖:: Originally posted by wurongjun at
TEXT& &Text annotation.
& & TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)
& & on the current axes, where (X,Y) is in units from the current
& & plot. If X and Y are vectors, TEX ... 你好,我想请问下这个方法如何修改文字的颜色和字体呢!因为text默认黑色
24小时热帖
下载小木虫APP
与700万科研达人随时交流查看: 6601|回复: 11|关注: 0
如何在绘出的函数图中加标注?
<h1 style="color:# 麦片财富积分
新手, 积分 5, 距离下一级还需 45 积分
截图矢量最终图.jpg (44.16 KB, 下载次数: 0)
10:19 上传
这是我的速度矢量图,我想在旁边加上对各速度大小的标注,请问大家如何加?
非常感谢!
<h1 style="color:# 麦片财富积分
在形成的图像中,有一个大A字样,点击这个就可以加标注了。
<h1 style="color:# 麦片财富积分
<h1 style="color:# 麦片财富积分
请具体回答一下好吗?我不是很理解,因为在我的图像中没有你说的大A字样啊,比较笨,呵呵
<h1 style="color:# 麦片财富积分
在view中有个属性菜单,点击那个试试吧
<h1 style="color:# 麦片财富积分
说错了,好像是edit种
<h1 style="color:# 麦片财富积分
我还是不知道怎么操作,能具体点吗?谢谢,我才接触Matlab,有很多东西还不懂
<h1 style="color:# 麦片财富积分
关注者: 1
veiw-&plot edit toolbar
<h1 style="color:# 麦片财富积分
然后呢,呵呵
<h1 style="color:# 麦片财富积分
然后呢,呵呵
站长推荐 /1
MATLAB中文论坛是全球最大的 MATLAB & Simulink 中文社区。用户免费注册会员后,即可下载代码,讨论问题,请教资深用户及结识书籍作者。立即注册加入我们吧!
MATLAB官方社交平台
MATLAB中文论坛微社区

我要回帖

更多关于 matlab在图形中标注 的文章

 

随机推荐