【问题标题】:Matlab surf plot remove offset (nonzero)Matlab 冲浪图删除偏移量(非零)
【发布时间】:2015-02-02 21:40:32
【问题描述】:

我有一些使用 surf 命令绘制的数据。 很简单,

data=xlsread('./sample_55_data.xlsx'); surf(data,'EdgeColor','none');

但是,它会生成一个在某些维度上从零偏移的图。 我不知道如何删除它。

【问题讨论】:

  • 您可以发布外部网站的链接,然后有人可以为您上传图片。

标签: matlab 3d offset


【解决方案1】:

您可以使用“gca”句柄设置坐标区的属性。在 Matlab 2013 中

set(gca,'XLim',[0,Xmax];

或在 2014 年 b (http://nl.mathworks.com/help/matlab/ref/gca.html)

gca.Xlim = [0, Xmax];

【讨论】:

    猜你喜欢
    • 2021-01-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-10
    • 2021-01-20
    • 2016-09-12
    相关资源
    最近更新 更多