I am working on a project for a numerical methods class comparing two iterative methods for solving $Ax=b$, and I was wondering what type of functions Matlab has for generating arbitrarily large square matrices that could be used for testing purposes.
For example, is there any function that can generate diagonally dominant matrices easily? I could probably write one easily enough, but if there is one already that would be easier.
I'm looking for anything similar to
magic(n) that will generate a matrix with some given property that I can look at. I have looked through the Matlab documentation but couldn't find a list of any kind.