sympref
Set symbolic settings
Syntax
Description
sets the symbolic setting oldVal
= sympref(pref
,value
)pref
to
value
and returns the previous value of the setting to
oldVal
. You can set the setting to its default value
using sympref(pref,'default')
.
Symbolic settings can affect the computation of the symbolic functions
fourier
, ifourier
, and
heaviside
, and the display format of symbolic
output.
Examples
Input Arguments
Output Arguments
Tips
The
clear
command does not reset or affect symbolic settings. Usesympref
to manipulate symbolic settings.The symbolic settings you set using
sympref
also determine the output generated by thelatex
andmathml
functions.The
'FloatingPointOutput'
setting affects only the output display format of symbolic numbers. To change the output display format of numeric numbers, use theformat
function. To compute symbolic numbers using floating-point precision, use thevpa
ordigits
functions.