MATLAB Function Reference | Go to function: | Search Help Desk

set | See Also

set object properties

Syntax

    m=set(m,label1,value1,label2,value2,...)

Description

`m=set(m,label1,value1,label2,value2,...)` sets the value `value` of the attribute `label` associated to the object `m`. The following codes are recognised:

- `name` sets the name of the object
- `n_in` sets the number of inputs of the model. This sets the saturation level of the inputs to -Inf, Inf.
- `n_out` sets the number of outputs of the model
- `userData` sets the 'userData' field
- `opt` sets the 'opt' field
- `date` sets the date of creation of the object
- `limits` sets the limits of the mapping
- `optimparams` sets the indices of the parameters to be optimised
- `model_code` sets the type of rules associated to the mapping model
- `rls` sets the fuzzy sets associated to the mapping model
- `rl` sets one fuzzy set associated to the mapping model
- `mfs` sets the definition of the rules of the mapping model
- `mf` sets the definition of one rule of the mapping model
- `ling` sets the linguistical representation of the sets (the name of the sets)
- `varnames` sets the name of the variables
- `mftype` sets the type of a set. `value` is 3 elements cell array {a b c} where a is the number of the input, b is the index of the set and c is the type ('constant', 'trapezoidal', 's-shaped' or 'gaussian')
- `params` sets every parameters to be optimised providing a vector

Remarks

General pupose function for setting the values of the fields of a mamdani object. For setting the rules, use the `add_rules`, `rem_rules` and `add_sets` function. This method extends the 'set' method defined in the mapping class.

See Also

get, add_dynamics, add_data, add_rules

[ Help Desk ]