我正在摆弄 matlab(没有添加工具箱),并试图了解如何从交易数据库创建 x 分钟柱。
从 SQL 服务器访问数据,我得到一个元胞数组 Buy_Data:
Attributes: []
Data: {619134x2 cell}
DatabaseObject: [1x1 database]
RowLimit: 0
SQLQuery: [1x210 char]
Message: []
Type: 'Database Cursor Object'
ResultSet: [1x1 com.microsoft.sqlserver.jdbc.SQLServerResultSet]
Cursor: [1x1 com.mathworks.toolbox.database.sqlExec]
Statement: [1x1 com.microsoft.sqlserver.jdbc.SQLServerStatement]
Fetch: [1x1 com.mathworks.toolbox.database.fetchTheData]
现在,内容看起来像:
'2012-08-28 16:48:56.0' [24800]
'2012-08-28 16:48:56.0' [24800]
'2012-08-28 16:49:14.0' [24800]
'2012-08-28 16:49:14.0' [24800]
'2012-08-28 16:49:21.0' [24799]
'2012-08-28 16:49:51.0' [24800]
'2012-08-28 16:49:51.0' [24800]
'2012-08-28 16:49:55.0' [24800]
'2012-08-28 16:49:55.0' [24800]
'2012-08-28 16:49:56.0' [24800]
'2012-08-28 16:49:56.0' [24800]
'2012-08-28 16:49:56.0' [24800]
'2012-08-28 16:49:56.0' [24800]
'2012-08-28 16:49:56.0' [24800]
'2012-08-28 17:00:12.0' [24839]
我如何将这些单元阵列中的 2 个组合成 x 分钟时间序列?