Filling missing parts in a file with Nan

1 回表示 (過去 30 日間)
Seyedeh Fardis
Seyedeh Fardis 2023 年 4 月 11 日
コメント済み: dpb 2023 年 4 月 11 日
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 件のコメント
Seyedeh Fardis
Seyedeh Fardis 2023 年 4 月 11 日
It is fixed now. I didn't define a timetable at first that's why I got that error. Thank you !
dpb
dpb 2023 年 4 月 11 日
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...

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by