Importing and Exporting Data
can import and export text, data, and graphics in a wide variety of formats. Here are examples of a few common operations.
To import data from a spreadsheet:
Save the data from your spreadsheet to a file where row entries are separated with spaces or tabs. Numbers should be written
in C or Fortran-like "E" notation. For example, in Excel you can save the data by setting the file type to "Text (Tab delimited)".
, type the command
, then evaluate it by pressing .
To write out a matrix to a file:
. The file will have spaces between row entries. Numbers are written in C or Fortran-like
notation, usually with six-digit precision.
The file can be read into a spreadsheet. For example, when you open the file in Microsoft Excel, the Text Import Wizard helps
you to interpret rows and columns in the file.
To import a bitmap image and manipulate it in
"]. The result will be a
expression that represents the graphic in the specified file.
to display the graphic in
To export an image:
If you are exporting an image that includes mathematical notation and is not in bitmap format, you should include the
fonts with the image. Otherwise these fonts will not be available when viewing or printing the image on another machine.
If the fonts are installed on your machine, the operating system will locate them and download them to the printer as needed.
For more information, see:
the entries for
in the Built-in Functions category of the Help Browser.
the Technical Support FAQs at
T I P
support a wide variety of text, graphics, and sound formats. You can view a complete list of supported formats in the Help
To convert a notebook to HTML for direct display on the web:
Save as Special
converts any graphic to a GIF image and creates the appropriate reference to the image in the HTML file. By default, closed
cell groups are converted to links and the contents of the closed cell are saved as a separate HTML file.
To link to a notebook from a web page:
Simply give a link to the notebook file whose name has the standard .nb extension. Most web browsers can open any file with
the extension .nb and view the notebook with
If your web browser cannot open notebooks by default, use the following settings to make
a helper application:
For colleagues without
, a free application for viewing notebooks, called
, can be downloaded from
. You can provide a link to
with your notebook.
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.