Plotting in Matlab and Fuzzy Logic Toolbox -------An Introduction.

Slides:



Advertisements
Similar presentations
MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Advertisements

CSE 123 Plots in MATLAB. Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots.
AI – CS289 Fuzzy Logic - Labs Fuzzy Logic – Lab 2 12 th October 2006 Dr Bogdan L. Vrusias
Fuzzy Systems and Control Günay Karlı, Ph.D.. Before we begin… some clever people have said in the past…
Fuzzy Inference and Defuzzification
MATLAB GRAPHICS 2-D.
Introduction to Matlab Tutorial for CS4MN3/SE3X03 Wen Yu McMaster University.
An Introduction to MATLAB Magali Billen U C Davis, Geology Department.
MATLAB Basic. Basic Data Elements The basic elements that MATLAB uses are matrices To form a matrix: Enter : A=[ ; ; ;
Introduction to Matlab 332:202 Discrete Mathematics Spring 2007.
Intro to Matlab 1.Vectors, matrices, and arithmetic 2.Plotting 3.Flow Constructs 4.Other Useful Things Can be found at:
Matlab Fuzzy Toolkit Example
Fuzzy Logic. Sumber (download juga): 0logic%20toolbox.pdf
Introduction to Matlab Jianguo Wang CSSCR September 2009.
Designing Effective Graphics Using MATLAB The Cain Project in Engineering and Professional Communication ENGINEERING SERIES.
 1999 BG Mobasseri1 8/29/2015 MATLAB GRAPHICS - PART II ADVANCED PLOTTING June 4, ‘99.
MATLAB Introduction Trygve Eftestøl Karl Skretting.
MATLAB Basics With a brief review of linear algebra by Lanyi Xu modified by D.G.E. Robertson.
Fuzzy Sets Introduction/Overview Material for these slides obtained from: Modern Information Retrieval by Ricardo Baeza-Yates and Berthier Ribeiro-Neto.
CMPS 1371 Introduction to Computing for Engineers PLOTTING.
Eng Advanced Marine Vehicles Todays agenda: Lab tomorrow at 2pm (structures lab) ‏ Advanced Marine Party Introduction to Matlab.
MATLAB WORKSHOP FOR EE 327FOR EE 327 MWF 8: AMMWF 8: AM August 26-30, 2002August 26-30, 2002 Dr. Ali A. Jalali.
ELG 3120 Signal and System Analysis 1 Introduction to MATLAB TAs Wei Zhang Ozgur Ekici (Section A)(Section B) ELG 3120 Lab Tutorial 1.
MEGN 536 – Computational Biomechanics MATLAB: Getting Started Prof. Anthony J. Petrella Computational Biomechanics Group.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
Eng Ship Structures 1 Introduction to Matlab.
October 13, MATLAB Fuzzy Logic Toolbox Intelligent Control.
Matlab Programming for Engineers Dr. Bashir NOURI Introduction to Matlab Matlab Basics Branching Statements Loops User Defined Functions Additional Data.
Fuzzy Inference (Expert) System
Statistics and Simple Plots. Outline Announcements: –Homework II: due Today. by 5, by Statistics Simple plots.
Fuzzy Logic Toolbox in MATLAB Praktikum 10. example  We want to buid FIS Mamdani, with this rules :  1. If the service is poor or the food is rancid,
Introduction MATLAB stands for MATrix LABoratory.  Basics  Matrix Manipulations  MATLAB Programming  Graphics  Image types  Image Processing  Useful.
Barak Shenhav Early Evolution Course 11 Feb 2001 MATLAB Visualization, Functions & Debugging.
Matlab Screen  Command Window  type commands  Current Directory  View folders and m-files  Workspace  View program variables  Double click on a.
MATLAB Tutorial EE313 Signals and Systems Created: Thursday Jan 25, 2007 Rayyan Jaber Modified by: Jeff Andrews.
MATLAB – PT1 The purpose of this workshop is to get you started and to have fun with MATLAB! Let’s talk a little and decide on what we will be covering.
Recap Chapter 5 “Plotting” Two Dimensional Plots Simple x-y Plots Titles, Labels and Grids Multiple Plots.
Recap Plots with More than one Line Plots of Complex Arrays Line, Color and Mark Style Axis Scaling and Annotating Plots Subplots Polar Plots Logarithmic.
EGR 106 Lecture 6 2-D Plotting Graphical presentation has become the standard method to show technical information. Engineers use plots to analyze, visualize,
Universal fuzzy system representation with XML Authors : Chris Tseng, Wafa Khamisy, Toan Vu Source : Computer Standards & Interfaces, Volume 28, Issue.
EGR 115 Introduction to Computing for Engineers Complex Numbers & 3D Plots – Part 2 Friday 07 Nov 2014 EGR 115 Introduction to Computing for Engineers.
Program design and algorithm development We will consider the design of your own toolbox to be included among the toolboxes already available with your.
ENG College of Engineering Engineering Education Innovation Center 1 2D Plots 2 in MATLAB Topics Covered: 1.More about 2-D plots  Placing multiple.
GRAPHICS AND VISUALISATION WITH MATLAB UNIVERSITY OF SHEFFIELD CiCS DEPARTMENT Deniz Savas & Mike Griffiths May 2015.
PMS RI 2010/2011 Prof. dr Zikrija Avdagić, dipl.ing.el. ANFIS Editor GUI ANFIS Editor GUI.
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 5.1 Simple Plot of Time.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
CS100A, Fall 1998, Lecture 191 CS100A, Fall 1998 Lecture 19, Thursday Nov 05 Matlab Concepts: Matlab arrays Matlab subscripting Matlab plotting.
An Introduction to Programming in Matlab Emily Blumenthal
Matlab & Image processing toolbox Heejune Ahn SeoulTech Last updated Jan.
EGR 106 – Week 5 – 2-D Plots Question : Why do engineers use plots? Answer : To analyze, visualize, and present data. Matlab has many useful plotting options.
How to use MATLAB (using M-files) Double click this icon To start Matlab 6.5.
REVIEW Linear Combinations Given vectors and given scalars
Signals in Matlab Matlab as a name stands for Matrix Laboratory.
Introduction to Mat lab
MATLAB Fuzzy Logic Toolbox
MATLAB Fuzzy Logic Toolbox
Ch3 Graphics Overview of Plotting Editing Plots
MATLAB How to use (using M-files) Double click this icon
MATLAB How to use (using M-files) Double click this icon
MATLAB How to use (using M-files)
Introduction to MATLAB Plotting LAB 3
CSCI N317 Computation for Scientific Applications Unit 1 – 5 MATLAB
Introduction to MATLAB Programming
CS 175 Project in AI Discussion -- matlab
Vectors, matrices, and arithmetic
Designing Effective Graphics Using MATLAB
Dr. Zhen Jiang Computer Science Department West Chester University
Introduction to Matlab
MATLAB stands for MATrix LABoratory.
Presentation transcript:

Plotting in Matlab and Fuzzy Logic Toolbox An Introduction

PLOT (2-D plotting) Linear plot. PLOT(X,Y) plots vector Y versus vector X. If X or Y is a matrix, then the vector is plotted versus the rows or columns of the matrix, whichever line up. If X is a scalar and Y is a vector, length(Y) disconnected points are plotted. PLOT(Y) plots the columns of Y versus their index. If Y is complex, PLOT(Y) is equivalent to PLOT(real(Y),imag(Y)). In all other uses of PLOT, the imaginary part is ignored.

Line plot x = 0 : 0.05 : 5; y = sin(x.^ 2); plot(x, y);

Other 2-D plotting bar stairs errorbar polar stem

MESH (3-D plotting) % Mesh Plot of Peaks z=peaks(25); mesh(z);

Other 3-D plotting surf surfl contour quiver slice

Example Membership Function of “young” Filename: mfyoung.m function y = mfyoung(x) % member function: young y = exp(-power(x/20,2));

Membership Function of “old” Filename: mfold.m function y = mfold(x) % member function: old y = exp(-power((x-100)/30,2));

x = 0:1:100; % people age between 0 and 100. y=min((1-power(mfyoung(x), 2)),(1-power(mfold(x), 2))); % not very young and not very old. plot(x,y) y=max(power(mfyoung(x), 2), power(mfold(x), 2)); % very young or very old figure, plot(x,y) % open a new figure window and plot

Fuzzy Logic Toolbox (GUI) Start the toolbox:

FIS Editor

MF Editor

Rules Editor

Command Line functions plotfis plotmf gensurf

Built-in membership functions

Building a FIS from scratch The Basic Tipping Problem. Given a number between 0 and 10 that represents the quality of service at a restaurant (where 10 is excellent), and another number between 0 and 10 that represents the quality of the food at that restaurant (again, 10 is excellent), what should the tip be?

Building a FIS from scratch (cont.) – 1. If the service is poor or the food is rancid, then tip is cheap. – 2. If the service is good, then tip is average. – 3. If the service is excellent or the food is delicious, then tip is generous. – We'll assume that an average tip is 15%, a generous tip is 25%, and a cheap tip is 5%. It's also useful to have a vague idea of what the tipping function should look like.

Decision Surface

elp/pdf_doc/fuzzy/fuzzy_tb.pdf elp/pdf_doc/fuzzy/fuzzy_tb.pdf elp/toolbox/fuzzy/fuzzy.shtml