Retime- custom method for filling missing values (missing api)

16 ビュー (過去 30 日間)
shira rez
shira rez 2018 年 8 月 23 日
コメント済み: shira rez 2018 年 8 月 25 日
Hi, In the retime function page - there is an option to use a custom function for the "method", but there is no documentation for the api- what this function receives and what it should give back... (I assume- the timetable on both sides?)
This is a documentation bug, to my opinion.
Many thanks!
  3 件のコメント
Peter Perkins
Peter Perkins 2018 年 8 月 24 日
Shira, I think you are referring to the syntax where you pass a function handle into retime as the value of the 'Method' parameter, right?
The doc does say this:
"Use the function specified by the function handle (for example, @std to calculate the standard deviation for the values in each time bin). func must return an output argument that is a scalar or a row vector, and must accept empty inputs."
But you are correct, it doesn't say what the input is, and there's no example. I'll make a note to have that clarified.
For the record, the function takes as input a "chunk" of each timetable variable, where a chunk is the rows within each time bin that you've specified.
shira rez
shira rez 2018 年 8 月 25 日
Many thanks, Peter and dpb!

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

回答 (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