MATLAB: upsample matlab handle is nan