Mathematica graphical programming chart

I have a file with 40,000 data points. In Matlab, I can use the plot command to draw a graph:

aaa = Import('file Name');
plot(aaa,mesh)

How do I do this in Mathematica? I tried:

aaa = Import["File Name"]
ListPlot3D[aaa]

but that will not work.

+3
source share
1 answer

You have two problems: (1) how to import data into Mathematica and (2) how to display it.

For the first problem, the simplest answer is: it depends on the data format. If the file is one of the supported types , Import has a number of features that cannot be beaten. If your data is limited only by a tab (or space), use the "Table" format, as shown below:

Import["file name", "Table"]

, . , ReadList, .

value value value ... value
etc.

, ,

ReadList["file name", Number, RecordLists -> True]

.

, , .. (x, y, z) , ListPlot3D . (x, y, z, f), f - at (x, y, z), ListContourPlot3D. , Contour. , ListContourPlot3D , , . , (G4, MacOS 10.4, 2 ) , ListContourPlot3D 80 x 80 x 80 500 .

+8

Source: https://habr.com/ru/post/1720984/


All Articles