matlab.System.isTunablePropertyDataTypeMutableImpl - Set whether tunable properties can change data type - MATLAB (original) (raw)
Main Content
Class: matlab.System
Set whether tunable properties can change data type
Syntax
mutable = isTunablePropertyDataTypeMutableImpl(obj)
Description
[mutable](#d126e2108891) = isTunablePropertyDataTypeMutableImpl([obj](#mw%5Fd1a9ddf7-ce92-4761-a661-2a5dc686d152%5Fsep%5Fmw%5F353aa417-3412-46f8-81f1-586adf7da5a8))
returns whether tunable properties can change data type when the object is in use.
The isTunablePropertyDataTypeMutableImpl
method has no effect on theMATLAB System block. Tunable parameter datatype is always immutable in the MATLAB System block.
Method Authoring Tips
You must set Access = protected
for this method.
Input Arguments
System object handle used to access properties, states, and methods specific to the object. If your isTunablePropertyDataTypeMutableImpl
method does not use the object, you can replace this input with ~
.
Output Arguments
If you do not implement this method, tunable properties can change data types unless the [StrictDefaults](matlab.system-class.html#mw%5F38d92dea-d023-409a-a98e-fe89be5cceef)
class attribute is set. If you implement this method, returning true
means tunable property data types can change and false
means they cannot change.
Examples
Restrict the data type of tunable properties by adding theisTunablePropertyDataTypeMutableImpl
method and returningfalse
. By adding this method, users of the System object cannot change the data type of tunable properties while the System object is in use.
function flag = isTunablePropertyDataTypeMutableImpl(obj) flag = false; end
Version History
Introduced in R2018a