globalfimath
Configure global fimath and return handle object
Syntax
G
= globalfimath
G
= globalfimath('PropertyName1
',PropertyValue1
,...)
G
= globalfimath(f)
Description
returns
a handle object to the global fimath. The global fimath has identical
properties to a G
= globalfimathfimath
object but applies globally.
sets
the global fimath using the named properties and their corresponding
values. Properties that you do not specify in this syntax are automatically
set to that of the current global fimath.G
= globalfimath('PropertyName1
',PropertyValue1
,...)
sets
the properties of the global fimath to match those of the input G
= globalfimath(f)fimath
object f
,
and returns a handle object to it.
Unless, in a previous release, you used the saveglobalfimathpref
function
to save global fimath settings to your MATLAB® preferences, the
global fimath properties you set with the globalfimath
function
apply only to your current MATLAB session. It is best practice
to remove global fimath from the MATLAB preferences so that you
start each MATLAB session using the default fimath
settings.
To remove the global fimath, use the removeglobalfimathpref
function.
Examples
Tips
If you always use the same fimath
settings
and you are not sharing code with other people, using the globalfimath
function
is a quick, convenient method to configure these settings. However,
if you share the code with other people or if you use the fiaccel
function
to accelerate the algorithm or you generate C code for your algorithm,
consider the following alternatives.
Goal | Issue Using globalfimath | Solution |
---|---|---|
Share code | If you share code with someone who is using different
global | Separate the |
Accelerate your algorithm using | You cannot use | Use types tables in the algorithm from which you want to generate code. This insulates you from the global settings and makes the code portable. For more information, see Separate Data Type Definitions from Algorithm. |
Version History
Introduced in R2010a
See Also
fimath
| codegen
(MATLAB Coder) | fiaccel
| removeglobalfimathpref
| resetglobalfimath