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.
By
Doug Hull
Doug first used MATLAB in 1994, could not figure it out until he got some help in 1995. He is now dedicated to making sure that no one else wastes a year of their life not knowing MATLAB like he did.
Doug,
These were helpful tips, especially the RANDPERM one. I’ll definitely be using that.
Thanks a lot,
Bård
Aha! Thanks for highlighting these shortcuts and functions. They are sometimes not so easy to discover in all the documentation. Very neatly done.
Thanks for providing such valuable information its making lot easier to work with handling multiple data