Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You have two issues here: (1) how to import the data into Mathematica and (2) how to display it.</p> <p>For the first problem, the simplest answer is: it depends on the format of the data. If the file is one of the <a href="http://reference.wolfram.com/mathematica/guide/ImportingAndExporting.html" rel="nofollow noreferrer">supported types</a>, Import has a number of capabilities that can't be beat. If your data is just tab (or, whitespace) delimited, use the "Table" format, as follows:</p> <pre><code>Import["file name", "Table"] </code></pre> <p>using the various import options to specify the record and field separators. Alternatively, you can use ReadList, which simply reads in a list of values. If your data is of the form</p> <pre><code>value value value ... value etc. </code></pre> <p>where value is numeric and each line is a separate record, I'd import it using</p> <pre><code>ReadList["file name", Number, RecordLists -&gt; True] </code></pre> <p>which loads the file into a rectangular array.</p> <p>As to the second problem, if your data is a set of triples, i.e. (x, y, z), or just a set of height values, then ListPlot3D should work just fine. If your data is instead of the form (x, y, z, f), where f is the function value at (x, y, z), then you should use ListContourPlot3D instead. You specify which contours you want by using the Contour option. Be warned, ListContourPlot3D may take a while to generate the plot depending on how large your data set is. Also, it can be a memory hog, on my machine (G4, MacOS 10.4, 2 GB) a ListContourPlot3D of an 80 x 80 x 80 grid can easily take 500 MB.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload