matlab怎么取消科学计数法,在Matlab图的刻度标签中删除科学计数法

I have made a plot in Matlab, using:

hold on

plot(t1,Dx1,'r')

xlabel('t (ps)')

ylabel('Deviation of coordinate from initial coordinate (Å)')

plot(t1,Dy1,'g')

plot(t1,Dz1,'b')

hold off

However, the tick labels on the y axis are generated in scientific notation:

052097aa58435666765dbcbd5a76fd44.png

Is there any way I can remove the scientific notation and just have the y labels range from -0.0025 to 0.0005? Thanks!

解决方案

You could try to manually set the tick labels yourself using sprintf:

yt = get(gca,'YTick');

set(gca,'YTickLabel', sprintf('%.4f|',yt))

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值