Filtering timeseries with NaN
9 次查看(过去 30 天)
显示 更早的评论
I am filtering out data due to the degree of Standard deviation. Once I determine which rows of data are good, I good back to the orginal data set and try to NaN the rows which are 'bad'.
threshold = 0.0013;
filtRows = find(relSD1 < threshold);
% plot(time, relSD1, '.-');
figure(6)
%plot figure - note that you need to rename my 'time' for your own time vector name
plot(time, f_fluxxcorredit,'.-k');
hold on;
plot(time(filtRows), f_fluxxcorredit(filtRows),'.r');
legend('all data', 'filtered data');
xlabel('Time, hrs');
ylabel('Flux mmol m^{-2} day^{-1}');
shg
How would I get a vector like f_fluxxcorredit (201 points) but with the bad data NaN? Filtrow is showing the good points 112 of them and the others should be NaN of f_fluxxcorredit.
0 个评论
采纳的回答
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!