31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

mvar<br />

Purpose<br />

Syntax<br />

Description<br />

Remove variables from <strong>Fuzzy</strong> Inference System<br />

fis2 = rmvar(fis,'varType',varIndex)<br />

[fis2,errorStr] = rmvar(fis,'varType',varIndex)<br />

fis2 = rmvar(fis,'varType',varIndex) removes the variable<br />

'varType', ofindexvarIndex, from the fuzzy inference system<br />

associated with the workspace FIS structure, fis:<br />

• The string varType must be 'input' or 'output'.<br />

• varIndex is an integer for the index of the variable. This index<br />

represents the order in which the variables are listed.<br />

[fis2,errorStr] = rmvar(fis,'varType',varIndex) returns any<br />

error messages to the string, errorStr.<br />

This command automatically alters the rule list to keep its size<br />

consistent with the current number of variables. You must delete from<br />

theFISanyrulethatcontainsavariableyouwanttoremove,before<br />

removing it. You cannot remove a fuzzy variable currently in use in<br />

therulelist.<br />

Examples<br />

a = newfis('mysys');<br />

a = addvar(a,'input','temperature',[0 100]);<br />

getfis(a)<br />

returns<br />

Name = mysys<br />

Type = mamdani<br />

NumInputs = 1<br />

InLabels =<br />

temperature<br />

NumOutputs = 0<br />

OutLabels =<br />

NumRules = 0<br />

AndMethod = min<br />

4-66

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!