- Initially, you can combine sensor data into a single "timetable" using the "synchronize" function.
- Next, you can identify timestamps with all NaN values, calculate means, and replace the NaNs using "all" and "ismissing" functions.
- You can perform time-based interpolation for remaining NaN values using the "fillmissing" function.
fillmissing function and obtaining replacement data from reference source
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dharmesh Joshi
am 1 Nov. 2022
Beantwortet: Himanshu
am 29 Aug. 2023
Hi
I have multiple timetables, each holds data of sensors.
At times sensors malfunction and produce false results. Therefore those samples or data are to NaN.
Is it possible to use fillmissing to obtain data from the other timetables?
For examples i have 8 sensors, i would then like ot use the mean data of the other 7 to replace when every data is NaN. Can this be possible?
It would need to obtain data from the closest timestamp(maybe few seconds to few mins apart)
Thanks
0 Kommentare
Akzeptierte Antwort
Himanshu
am 29 Aug. 2023
Hello Dharmesh,
I understand that you are trying to replace NaN values in your sensor data using the mean data from other sensors when the data is NaN at a timestamp.
You can follow the below steps:
You can refer to the below documentation to learn more about the "timetable", "synchronize", and "fillmissing" functions in MATLAB.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multirate Signal Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!