Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

setfis

Set fuzzy system properties

Syntax

a = setfis(a,fispropname,newfisprop)
a = setfis(a,vartype,varindex,varpropname,newvarprop)
a = setfis(a,vartype,varindex,'mf',mfindex,...,mfpropname,newmfprop)

Description

The command setfis can be called with three, five, or seven input arguments, depending on whether you want to set a property of the entire FIS structure, for a particular variable belonging to that FIS structure, or for a particular membership function belonging to one of those variables. The arguments are:

  • a — FIS structure in the MATLAB® workspace.

  • vartype — Variable type, specified as either 'input' or 'output'.

  • varindex — Variable index, specified as an integer.

  • mfindex — Membership function index, specified as an integer.

  • fispropname — FIS property you want to set, specified as one of the following:

    'name'
    'type'
    'andmethod'
    'ormethod'
    'impmethod'
    'aggmethod'
    'defuzzmethod'

  • newfisprop — New value of the FIS property you want to set, specified as a character vector.

  • varpropname — Variable property you want to set, specified as either 'name' or 'range'.

  • newvarprop — New value of the variable property you want to set, specified as a character vector (for 'name'), or a two—element numerical row vector (for 'range')

  • mfpropname — Membership function property you want to set, specified as either 'name', 'type', or 'params'.

  • newmfprop — New value of the membership function property you want to set, specified as a character vector (for 'name' or 'type'), or a numerical row vector (for 'params')

Examples

setfis is called with three arguments:

a = readfis('tipper');
a2 = setfis(a, 'name', 'eating');	
getfis(a2, 'name');

which results in

out =
eating

If it is used with five arguments, setfis updates two variable properties.

a2 = setfis(a,'input',1,'name','help');
getfis(a2,'input',1,'name')
ans =
	help

If used with seven arguments, setfis updates any of several membership function properties.

a2 = setfis(a,'input',1,'mf',2,'name','wretched');
getfis(a2,'input',1,'mf',2,'name')
ans =
	wretched

See Also

Introduced before R2006a

Was this topic helpful?