Does a way exists to get the results of the retime function in matlab 2015b??? Any help would be great!!!
2 次查看(过去 30 天)
显示 更早的评论
I'm trying to have one monotonic time created taking the end of the 1st cell of time data and continuing on until the last cell time data as one continous time. the frequency = 0.055;
(e.g. last cell data of cameraTime{1,1} = 3.2969e+03; cameraTime{1,2} = 3.2969e+03 + 0.055 and continue with the size of time data in the remaining cells to create one time for all the total cells.)
0 个评论
采纳的回答
Walter Roberson
2018-4-24
create cell arrays in which the camera time is the first column and the data corresponding to that time is in the other columns. cell2mat() those together into one big matrix and sort() on time.
Create a vector of times from the first to ceil((last-first)/0.055)*0.055+first at intervals of 0.055
Now do interp1() over the arrays, original time values as the x values, vector with consistent offset as the x values to query at.
9 个评论
Walter Roberson
2018-4-27
duration of cycle is 4400. You could use duration objects in this matter, or you could just leave everything numeric. As in
4399.989
4399.9945
0.0
0.0055
going to
4499.989
4399.9945
4400.0
4400.0055
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!