100 likes | 397 Vues
Converting Matrix Market matrices to Matlab format. The Matrix Market is an interesting collection of matrices from a variety of applications. Purpose of this tutorial. To describe how to convert Matrices from the Matrix Market into Matlab format. Steps in downloading matrices.
E N D
Converting Matrix Market matrices to Matlab format The Matrix Market is an interesting collection of matrices from a variety of applications
Purpose of this tutorial • To describe how to convert Matrices from the Matrix Market into Matlab format
Steps in downloading matrices • Find the desired matrix in the Matrix Market (see “Introduction to the Matrix Market”) • Download a file describing the matrix • Uncompress the file (see “Downloading Matrix Market matrices”) • Convert the matrix to Matlab format
To convert the file to Matlab format • Download two files -- mmread.m and loadmatrix.m from www.math.sjsu.edu/~foster 2. Open up Matlab. Any version of Matlab from version 5.3 or after would be fine. 3. From inside Matlab move to the folder that contains your files using cd and dir 4. Define the “filename” and execute the loadmatrix program
Other tutorials available at www.math.sjsu.edu/~foster • Introduction to the Matrix Market • Downloading Matrix Market matrices • Using Matrix Market matrices in Matlab • Iterative methods in Matlab with Matrix Market matrices