Hi, I would like to use retime to calculate monthly median.
I tried to use median as a function and it works if I do not specify anything but I I want to add 'omitnan' it does not work.
It gives:
retime(Liv_dom_an, 'monthly', @median(Liv_dom_an{:,:},'omitnan'))
↑
Error: Unbalanced or unexpected parenthesis or bracket.
I tried creating a specific function but I'm not able to make it works.
Thanks!
3 Comments
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/472347-how-can-i-change-the-retime-function-in-order-to-do-a-median-a-omitnan#comment_725755
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/472347-how-can-i-change-the-retime-function-in-order-to-do-a-median-a-omitnan#comment_725755
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/472347-how-can-i-change-the-retime-function-in-order-to-do-a-median-a-omitnan#comment_725764
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/472347-how-can-i-change-the-retime-function-in-order-to-do-a-median-a-omitnan#comment_725764
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/472347-how-can-i-change-the-retime-function-in-order-to-do-a-median-a-omitnan#comment_725771
Direct link to this comment
https://ww2.mathworks.cn/matlabcentral/answers/472347-how-can-i-change-the-retime-function-in-order-to-do-a-median-a-omitnan#comment_725771
Sign in to comment.