I don't think literally copying an example from the Matlab docs is a good idea - copyright and all. Can you change it?