0% found this document useful (0 votes)
237 views29 pages

Matlab Fuzzy

This document provides an introduction and overview of MATLAB's Fuzzy Logic Toolbox. It outlines the basic operation of MATLAB, the working environment, and introduces the key components of fuzzy logic systems including fuzzification, fuzzy inference engines, rule bases, and defuzzification. It also describes how to build and simulate fuzzy logic controllers using the Fuzzy Logic Toolbox GUI and Simulink blocks.

Uploaded by

Simion Jardan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
237 views29 pages

Matlab Fuzzy

This document provides an introduction and overview of MATLAB's Fuzzy Logic Toolbox. It outlines the basic operation of MATLAB, the working environment, and introduces the key components of fuzzy logic systems including fuzzification, fuzzy inference engines, rule bases, and defuzzification. It also describes how to build and simulate fuzzy logic controllers using the Fuzzy Logic Toolbox GUI and Simulink blocks.

Uploaded by

Simion Jardan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

I t d ti to

Introduction t MATLAB Fuzzy


F
Logic Toolbox

Edited by Jen-Sheng Tsai

2008/10/5
Outline

Basic Operation
Fuzzyy Logic
g Toolbox
Simulink
Working Environment

Current Directory

Workspace
Command Window

Command History
Basic Operation

>>helpbrowser
Basic Operation

>>help max
Arithmetic Operators
O
Operation
ti D
Description
i ti
+ Addition
- Subtraction
* Matrix multiplication
/ Division
.* Array multiplication
Relational Operators
O
Operation
ti D
Description
i ti
== Equal to
~= Not equal to
< Less than
<= Less than or equal to
>= Greater than or equal to
> Greater than
Logical Operators
O
Operation
ti D
Description
i ti
& AND
| OR
~ NOT
Flow Control in MATLAB

for variable=initval:stepval:endval,
statements, end

while expression,
expression statements,
statements end

if expression, statements, end


File Input/Output

fid=fopen(filename, permission)
‘r’, ‘w’, ‘a’, ‘a+’
fscanf(fid, format)
fprintf(fid, format, Data)
%s, %d
fclose(fid)
M-File in MATLAB
Outline

Basic Operation
Fuzzyy Logic
g Toolbox
Simulink
Fuzzy Controller

Actions
Defuzzification

Controlled Fuzzy
Fuzzy rule
process inference
base
engine

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
Fuzzyy Logic
g Toolbox
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

You might also like