MATLAB 帮助中心
将图像插入到注解中
setImage(annotation,source)
setImage(annotation,source) 将剪贴板或图像文件中的图像插入到注解中。
annotation
source
示例
全部折叠
在图 ch 中添加注解。使用文件 myImageFile.png 作为注解的图像,该文件位于文件夹 myfolder/annotation_images 中。
ch
myImageFile.png
myfolder/annotation_images
annotation = Stateflow.Annotation(ch); setImage(annotation, ... fullfile("myfolder","annotation_images","myImageFile.png"));
Stateflow.Annotation
注解,指定为 Stateflow.Annotation 对象。
"clipboard"
""
图像的源,指定为包含图像文件完整路径和名称的字符串标量或字符数组。或者,要从剪贴板插入图像,请指定 "clipboard"。
要将图像注解转换为文本注解,请指定 ""。
在 R2014a 中推出
fullfile
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处