x 轴中的日期 - OCTAVE

问题描述

我正在尝试根据 x 轴上的日期/时间 (UT) 绘制 Excel 文件中的数组 (Dst)。八度确实将日期时间转换为一个值 - 序列号。

我尝试将 UT 转换为字符串和单元格字符串。但是,我无法绘制 UT,因为类类型已更改为单元格和字符。

我能做什么?

这是我的代码

%exporting data from the excel file
UT = data(1:120,7:7)
Dst = data(1:120,9:9)

%exporting UT as a string.
pkg load financial
Date = x2mdate(Date,0);
str = datestr(Date,15);
A = cellstr(str);


%plotting
plot (Date,Dst); datetick('x',15)

error: plot: no data to plot

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)