Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How to expert a matrix in matrix market format

  • To: mathgroup at smc.vnet.net
  • Subject: [mg112065] Re: How to expert a matrix in matrix market format
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Sat, 28 Aug 2010 07:03:00 -0400 (EDT)

On 8/27/10 at 4:06 AM, pratip.chakraborty at gmail.com (pratip) wrote:

>Dear Group,
>
>Can some one tell me how to export a matrix containing numerical
>values in a matrixmarket file. It is called .mtx format. mathematica
>documentation supports it but I cant export using the export
>command. Also how to import .mtx files in mathematica.

To Export:

Export["test", RandomReal[1, {5, 5}], "MTX"]

To Import:

Import["test", "MTX"]

For more information about Export/Import in matrixmarket format goto:

ref/format/MTX

in the Documentation Center



  • Prev by Date: Plot of (2 x^2 - x^3)^(1/3)
  • Next by Date: palette shows as unsaved if I move it
  • Previous by thread: How to expert a matrix in matrix market format
  • Next by thread: Re: How to expert a matrix in matrix market format