matlab code, samples and graphs