How to create timeseries object with 3-dimensional Data, 1st (not last) dimension corresponding with Time
3 ビュー (過去 30 日間)
古いコメントを表示
i'm trying to run an old piece of code in which a timeseries object is created with Data being a 3-dimensional array whose 1st dimension corresponds with the time vector. say:
ts=timeseries;
set(ts,'Data',rand(10,2,3),'Time',[1:10]');
Matlab 2013b meanwhile, results in the error 'Data and time dimensions are incompatible.' For 3-or more-dimensional Data, the last dimension has to correspond with the time vector: 'istimefirst' property is 'false' by default for 3- or more dimensional Data. So i tried:
ts=timeseries;
set(ts,'Data',rand(10,2,3))
set(ts,'istimefirst',1);
but set doesn't allow me to change the isTimeFirst property.
So my question is: how can i create a timeseries object with a 3-dimensional Data and have the 1st dimension correspond with Time?
0 件のコメント
回答 (1 件)
Francois Clemens
2017 年 8 月 16 日
a bit late maybe, but have a loo at the permute function...
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Time Series についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!