the unwanted wife series, discrete plot matlab