retime 'regular' is not a valid specification of target time vector for synchronization.
5 ビュー (過去 30 日間)
古いコメントを表示
I have tried to use the code from here: https://uk.mathworks.com/help/matlab/ref/retime.html#d119e1004914 under 'Specify Time Step of Your Own' and I get an error. Why do I get an error when this is suggested code?
Time = datetime({'2015-12-18 07:29:53';'2015-12-18 08:00:00';...
'2015-12-18 08:31:02';'2015-12-18 09:30:00'});
Temp = [37.3;41.9;45.7;39.8];
Pressure = [30.1;29.9;30.03;29.8];
TT1 = timetable(Time,Temp,Pressure)
TT1 =
4×2 timetable
Time Temp Pressure
____________________ ____ ________
18-Dec-2015 07:29:53 37.3 30.1
18-Dec-2015 08:00:00 41.9 29.9
18-Dec-2015 08:31:02 45.7 30.03
18-Dec-2015 09:30:00 39.8 29.8
>> dt = minutes(30);
TT2 = retime(TT1,'regular','linear','TimeStep',dt)
Error using timetable/retime (line 121)
'regular' is not a valid specification of target time vector for synchronization.
0 件のコメント
採用された回答
Steven Lord
2018 年 6 月 18 日
The online documentation is for the most recent release. As I type this the most recent release is release R2018a. You're using an older release than R2018a. The syntax where retime accepts the inputs 'regular' with a 'TimeStep' or 'SamplingRate' was introduced in release R2018a.
Open your installation's documentation for retime and you'll see that syntax is not listed. You should also see examples that will work in the release you're using.
0 件のコメント
その他の回答 (1 件)
Guillaume
2018 年 6 月 18 日
The 'regular' option of retime was introduced in R2018a. You'll get this error if you're using any earlier version.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!