OpenersPrimaryExamplesSection(Spacer1)Examples  (2)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

This imports a sparse matrix from an MTX sample file, giving a visual representation of it:

Import[ "ExampleData/bcsstk08.mtx.gz", "Graphics"]

Import this file as a sparse array object:

Import[ "ExampleData/bcsstk08.mtx.gz"]

This exports a 2×2 matrix to MTX:

ExportString[ {{0.,3.}, {5.,0.}}, "MTX"]

ImportString[%]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {Related Formats:  (RefLink[CSV, paclet:ref/format/CSV])  ▪  (RefLink[Graph6, paclet:ref/format/Graph6])  ▪  (RefLink[HarwellBoeing, paclet:ref/format/HarwellBoeing])  ▪  (RefLink[MAT, paclet:ref/format/MAT])  ▪  (RefLink[MPS, paclet:ref/format/MPS])  ▪  (RefLink[MTP, paclet:ref/format/MTP])  ▪  (RefLink[Sparse6, paclet:ref/format/Sparse6])  ▪  (RefLink[TSV, paclet:ref/format/TSV])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Importing & Exporting, paclet:guide/ImportingAndExporting])}, {▪(RefLinkPlain[Listing of All Formats, paclet:guide/ListingOfAllFormats])}, {▪(RefLinkPlain[Mathematical Data, paclet:guide/MathematicalData])}, {▪(RefLinkPlain[Mathematical Data Formats, paclet:guide/MathematicalDataFormats])}, {▪(RefLinkPlain[Matrices and Linear Algebra, paclet:guide/MatricesAndLinearAlgebra])}, {▪(RefLinkPlain[Numerical Data Formats, paclet:guide/NumericalDataFormats])}, {▪(RefLinkPlain[Sparse Arrays, paclet:guide/SparseArrays])}})}})