Filter löschen
Filter löschen

Filling missing parts in a file with Nan

2 Ansichten (letzte 30 Tage)
Seyedeh Fardis
Seyedeh Fardis am 11 Apr. 2023
Kommentiert: dpb am 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 Kommentare
Seyedeh Fardis
Seyedeh Fardis am 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 am 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...

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by