futures matlab code