www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/VectorWithNaNValuesExample.m
%% Vector with |NaN| Values % Create a vector that contains |NaN| values and replace each |NaN| with % the previous non-missing value. A = [1 3 NaN 4 NaN NaN 5]; F = fillmissing(A,'previous')