MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.

Slides:



Advertisements
Similar presentations
Introduction to S-Plus by Francesco Ferretti Analysis of Biological Data Course Winter term 2007 Dalhousie University.
Advertisements

Introduction to Programming using Matlab Session 2 P DuffourJan 2008.
Introduction to MATLAB
Introduction to Matlab EE 2303 Lab. MATLAB stands for “Matrix Laboratory” APPLICATIONS OF MATLAB:  Mathematical Calculations  Data Analysis & Visualization.
Intro MATLAB: Special Purpose Computer Program Optimized to perform engineering and scientific calculations Implements the MATLAB programming language.
Introduction to MATLAB Week 13 – 4/21/09. Instructor: Kate Musgrave Time: Tuesdays 3-5pm Office Hours: Tuesdays 1:30-3pm
ES 100: Introduction to Engineering Use of the Computer 1.Log in using your Novell password. If you do not know your password, immediately (now!) see Al.
Introduction to MATLAB
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
Introduction to programming in MATLAB MATLAB can be thought of as an super-powerful graphing calculator Remember the TI-83 from calculus? With many more.
Digital Image Processing Lecture3: Introduction to MATLAB.
January 24, 2005 Lecture 3 - By P. Lin 1 CPET 190 Lecture 3 Problem Solving with MATLAB
August 22, 2005 Lecture 1 - By P. Lin 1 CPET 190 Lecture 1 Problem Solving with MATLAB
Sikuli Ivailo Dinkov QA Engineer PhoneX Team Telerik QA Academy.
MATLAB Lecture One Monday 4 July Matlab Melvyn Sim Department of Decision Sciences NUS Business School
BRIAN D. HAHN AND DANIEL T. VALENTINE THIRD EDITION Essential MATLAB® for Engineers and Scientists.
Introduction to M ATLAB EE 100 – EE Dept. - JUST.
Data, graphics, and programming in R 28.1, 30.1, Daily:10:00-12:45 & 13:45-16:30 EXCEPT WED 4 th 9:00-11:45 & 12:45-15:30 Teacher: Anna Kuparinen.
Lecture 4 MATLAB Windows Arithmetic Operators Maintenance Functions
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
A L I MAM M OHAMMAD B IN S AUD I SLAMIC U NIVERSITY C OLLEGE OF S CIENCES D EPARTMENT OF M ATHEMATICS MATLAB 251 : MATH SOFTWARE Introduction to MATLAB.
ELG 3120 Signal and System Analysis 1 Introduction to MATLAB TAs Wei Zhang Ozgur Ekici (Section A)(Section B) ELG 3120 Lab Tutorial 1.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
Introduction to Engineering MATLAB – 6 Script Files - 1 Agenda Script files.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
MATLAB Practice 1 Introducing MATLAB Lecture Notes on Video Search & Mining, Spring 2012 Presented by Jun Hee Yoo Biointelligence Laboratory School of.
Introduction to Engineering MATLAB – 2 Introduction to MATLAB - 2 Agenda Defining Variables MATLAB Windows.
CMPS 1371 Introduction to Computing for Engineers MatLab.
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
MATLAB Technical Computing Environment. MATLAB Matlab is an interactive computing environment that enables numerical computation and data visualization.
EGR 115 Introduction to Computing for Engineers Introduction to MATLAB Friday 29 August 2014 EGR 115 Introduction to Computing for Engineers.
EGR 115 Introduction to Computing for Engineers Introduction to Computer Programming Wednesday 27 Aug 2014 EGR 115 Introduction to Computing for Engineers.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
The Hong Kong Polytechnic University Industrial Centre MatLAB Lesson 1 : Overview & Environment Edward Cheung Room W311g.
訊號與系統 廖文淵 德霖技術學院資訊工程系 Introduction to MATLAB.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
MATLAB The name of MATLAB stands for matrix laboratory. Starting a MATLAB Session -On Microsoft® Windows® platforms, start the MATLAB program by double-clicking.
Getting started with Matlab: Outline
Matlab Programming for Engineers
CST 1101 Problem Solving Using Computers
Introduction to Matlab
Introduction to MATLAB
Release Numbers MATLAB is updated regularly
Introduction to Matlab
Appendix B MathScript Basics
2) Platform independent 3) Predefined functions
MATLAB(Matrix Laboratory). Introduction Developed by MathWorks Numerical Computing Environment Fourth-generation Programming Language.
Introduction to MATLAB
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Lecture 1: Introduction
Use of Mathematics using Technology (Maltlab)
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Digital Image Processing
funCTIONs and Data Import/Export
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
Matlab Basic Dr. Imtiaz Hussain
Experiment No. (1) - an introduction to MATLAB
Using Script Files and Managing Data
Scripts In Matlab.
Using R for Data Analysis and Data Visualization
Introduction To MATLAB
Presentation transcript:

MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun

Introduction What is MATLAB ? MATLAB is a computer program that combines computation and visualization power that makes it particularly useful tool for engineers. MATLAB is an executive program, and a script can be made with a list of MATLAB commands like other programming language. MATLAB Stands for MATrix LABoratory. The system was designed to make matrix computation particularly easy. The MATLAB environment allows the user to: manage variables import and export data perform calculations generate plots develop and manage files for use with MATLAB.

MATrix LABoratory Advantages of MATLAB Disadvantages of MATLAB Ease of use Platform independence Predefined functions Plotting Disadvantages of MATLAB Can be slow Commercial software

Typical uses include Math and computation Algorithm development Modeling, simulation, and prototyping Data analysis, exploration, and visualization Scientific and engineering graphics Application development, including graphical user interface (GUI) building.

MATLAB Environment To start MATLAB: START  PROGRAMS  MATLAB 7.0  MATLAB 7.0

Display Windows

Display Windows with start button

Display Windows (con’t…) Command Window: Enter all commands here Workspace Window: Shows the list of variable used Command History Window: Shows the command history Current Directory Window: Displays current working directory Graphic (Figure) Window Displays plots and graphs Created in response to graphics commands. M-file editor/debugger window Create and edit scripts of commands called M-files.

Command Window Here all the command are entered. Try the following commands

Example 1 Find the value of z for the expression z=x+y, if x=5 and y=7. Solution:

Workspace windows for above example

Command history window for above exmple

Example 2:Graphic (Figure) Window Plotting the sin wave Figure window

Types of Files 1. M-Files 2. MAT-Files 3. MEX-Files

Types of Files cont… 1. M-Files: ASCII text files with .m extension. Any program written in MATLAB editor is saved as M-file. Two types Script Files : .m files with MATLAB commends Function Files : .m files of function

Types of Files cont… 2. MAT-Files: Binary data file with .mat extension. These are created by MATLAB when data is saved from workspace. 3. MEX-Files: It is MATLAB callable FORTRAN and C Program, with .mex extension.

Set Path To execute a file/help, it must be in proper (default) directory. If it is in some other folder, set the folder path Go to File->set Path->

Some Commends General Commands Workspace Commands Clock :Provides clock time and data as a vector Date :Provides data as a string Ver :Gives the version of MATLAB installed Workspace Commands Who :Lists the variables currently in the worksapce Whos :Same as who but ges more information sach as type and size etc What :Lists .m, .mat and .mex files on the disk Clear :To clear workspace variables Clc :To clear command windows Clf :To clear current figure window

Some Commends conti… Termination Ctl-c :local abort, kills the current command execution  Quit :quits MATLAB Exit :same as quit Help help :lists topics on which help is available help help :provides information on use of the help command Helpwin :opens the interactive help window Helpdesk :opens the web browser based help facility help topic :provides help on topic Demo : runs the demo program lookfor keyword :Search all M-files for keyword

Getting Help (con’t…) Google “MATLAB helpdesk” Go to the online HelpDesk provided by www.mathworks.com You can find EVERYTHING you need to know about MATLAB from the online HelpDesk.

Questions? Hello