SetOptions

SetOptions[s,name1value1,name2value2,]
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
Introduced in 1988
(1.0)
| Updated in 2012
(9.0)