Filling missing parts in a file with Nan

1 view (last 30 days)
Seyedeh Fardis
Seyedeh Fardis on 11 Apr 2023
Commented: dpb on 11 Apr 2023
Hi,
I have a data for a year in every 15 mins. In times when there weren't any data it is skipped whil I want to find that missing times and put Nan instead. My idea is to define a Nan file and then find that times that data is available and put then in my Nan file but i do't know how to write a code for that. Please let me know if you have any idea.
  8 Comments
Seyedeh Fardis
Seyedeh Fardis on 11 Apr 2023
It is fixed now. I didn't define a timetable at first that's why I got that error. Thank you !
dpb
dpb on 11 Apr 2023
Yeah, ya' gotta' parse error messages carefully; they almost always will tell you enough to figure out what's wrong, but have to pay close attention, often. This one that has the "or" in it seems to me could/should only tell you about the first argument not being of the t-table class when it isn't.
I also wish they would extend retime to other tables where there is a datetime variable and let one define which variable is the chosen one instead of restricting it to the ttable only....sometimes you don't want a ttable but the functionality is...of course, you can convert back and forth and get there...

Sign in to comment.

Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!