【问题标题】:Calling dateaxis function using handles in MATLAB在 MATLAB 中使用句柄调用 dateaxis 函数
【发布时间】:2015-10-31 01:25:59
【问题描述】:

如您所知,我们可以使用 MATLAB 句柄调用不同的绘图函数,例如:

plot(handles.axes,data);
hold(handles.axes,'on')
plot(handles.axes,ab2,data2,':r');
title(handles.axes','my title');
legend(handles.axes,'mm','ab','Location','Best');
grid on;
ylabel(handles.axes,'y label);

我们如何使用句柄调用dateaxis 函数?我想将我的 x 轴值转换为日期。 dateaxis(handles.axes,12) 没用。

【问题讨论】:

  • 也许使用datetick
  • 干得好! .请添加您的答案。谢谢。
  • 哈哈好!我刚做了。

标签: matlab plot matlab-guide axes


【解决方案1】:

您可能希望使用datetick,它允许您以与plot 相同的方式指定要应用更改的轴:

datetick(axes_handle,...)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多