SetOptions

SetOptions[s, name1->value1, name2->value2, ...]
sets the specified default options for a symbol s.

SetOptions[stream, ...] or SetOptions["name", ...]
sets options associated with a particular stream.

SetOptions[object, ...]
sets options associated with an external object such as a NotebookObject.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Reset the default precision for HilbertMatrix:

In[1]:=
Click for copyable input
Out[1]=

Now HilbertMatrix uses machine numbers by default:

In[2]:=
Click for copyable input
Out[2]=

A specific option setting overrides the new default:

In[3]:=
Click for copyable input
Out[3]=

Restore the system default:

In[4]:=
Click for copyable input

Change the style for plots to use dashed curves:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Restore the system default:

In[3]:=
Click for copyable input
New in 1 | Last modified in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »