声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1000|回复: 1

[绘图技巧] 求助:图形标注

[复制链接]
发表于 2007-4-26 16:20 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
标注text(x(1,2),y(1,2),'num2str(f(1,2))')时,
f(1,2))对应的值为小数,而我只想显示对应小数点前的数值,
该如何调整,谢谢!
回复
分享到:

使用道具 举报

发表于 2007-4-26 16:25 | 显示全部楼层
T = NUM2STR(X,N) converts the matrix X into a string representation
    with a maximum N digits of precision.  The default number of digits is
    based on the magnitude of the elements of X.


建议多使用matlab帮助
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-24 15:28 , Processed in 0.050872 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表