How to use timetable function to insert it into data cleaner app ?

1 次查看(过去 30 天)
Hi all,
I would like to clean my data by using a cleaner data app, but I cannot put my data directly which cannot read it because it's not in the timetable. Also, I used the Timetable function but needed to insert the time step. how can I fix this I f I have only the signal vector, please?
I will attach the data and the code for timetable function
load('a.mat')
b= timetable(a);

回答(1 个)

dpb
dpb 2022-11-2
编辑:dpb 2022-11-2
load(websave('a.mat','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1178268/a.mat'))
Fs=1; % assume 1 Hz; set at whatever is your sample rate
ttA=timetable(a,'SampleRate',Fs);
head(ttA)
Time a _____ ______ 0 sec 0 1 sec 74.08 2 sec 132.85 3 sec 116.46 4 sec 351.76 5 sec 97.4 6 sec 97.5 7 sec 98.1
See timetable for all the other possible ways in which you can create the time vector...

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by