Introduction t I t d ti to MATLAB Fuzzy F Logic Toolbox

Edited by Jen-Sheng Tsai
2008/10/5

Outline
Basic Operation Fuzzy Logic Toolbox y g Simulink

Working Environment Current Directory Workspace Command Window Command History .

Basic Operation >>helpbrowser .

Basic Operation >>help max .

Arithmetic Operators Operation O ti + * / .* Description D i ti Addition Subtraction Matrix multiplication Division Array multiplication .

Relational Operators Operation O ti == ~= < <= >= > Description D i ti Equal to Not equal to Less than Less than or equal to Greater than or equal to Greater than .

Logical Operators Operation O ti & | ~ Description D i ti AND OR NOT .

end while expression statements end expression. statements. statements.Flow Control in MATLAB for variable=initval:stepval:endval. end . statements. if expression.

‘a’.File Input/Output fid=fopen(filename. Data) %s. format) fprintf(fid. format. ‘a+’ fscanf(fid. ‘w’. permission) ‘r’. %d fclose(fid) .

M-File in MATLAB .

Outline Basic Operation Fuzzy Logic Toolbox y g Simulink .

Fuzzy Controller Actions Defuzzification Controlled process Fuzzy inference engine Fuzzy rule base Conditions Fuzzification .

Fuzzy Logic Toolbox >>fuzzy .

Fuzzy Logic Toolbox File Edit View .

Fuzzy Logic Toolbox Edit Member Functions .

Fuzzy Logic Toolbox Edit Rules .

Fuzzy Logic Toolbox View Rule .

Fuzzy Logic Toolbox View Surface .

Fuzzy Logic Toolbox File Export To Workspace File Export To Disk .

Fuzzy Logic Toolbox Evaluation .

Outline Basic Operation Fuzzy Logic Toolbox y g Simulink .

Simulink >>simulink .

Simulink Help for the block .

Simulink Fuzzy Logic Controller .

Simulink Fuzzy Logic Controller .

Simulink Add Sinks and Sources block .

Simulink Configuration Parameters .

Simulink Run .