Stuart’s MATLAB Videos

Watch and Learn

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the Original version of the page.

Making test data in MATLAB 4

Posted by Doug Hull,

Many times when trying to test an algorithm or understand code written by someone else, it is beneficial to run the code with data you understand already. For that purpose, I have several standard types of data that I can quickly load or synthesize. I know that these datasets do not have NaN, Inf, or any other entries that often wreck algorithms that do not need to handle them.

4 CommentsOldest to Newest

Bård Skaflestad replied on : 1 of 4
Doug, These were helpful tips, especially the RANDPERM one. I'll definitely be using that. Thanks a lot, Bård
Joe Pohedra replied on : 2 of 4
Aha! Thanks for highlighting these shortcuts and functions. They are sometimes not so easy to discover in all the documentation. Very neatly done.
Irshad replied on : 3 of 4
Thanks for providing such valuable information its making lot easier to work with handling multiple data
Surekha sakhare replied on : 4 of 4
Very nicely explained . Otherwise would have taken lot of time to read and understand from books