NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.

Slides:



Advertisements
Similar presentations
1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
Advertisements

MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
EGR 106 – Week 2 – Arrays Definition, size, and terminology Construction methods Addressing and sub-arrays Some useful functions for arrays Character arrays.
Matlab Matlab is a powerful mathematical tool and this tutorial is intended to be an introduction to some of the functions that you might find useful.
EGR 106 – Week 2 – Arrays & Scripts Brief review of last week Arrays: – Concept – Construction – Addressing Scripts and the editor Audio arrays Textbook.
Introduction to MATLAB Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/22/2003.
Key Applications Module Lesson 12 — Word Essentials
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
Introduction to MATLAB ENGR 1187 MATLAB 1. Programming In The Real World Programming is a powerful tool for solving problems in every day industry settings.
Digital Image Processing Lecture3: Introduction to MATLAB.
Programming For Nuclear Engineers Lecture 12 MATLAB (3) 1.
What is MATLAB ? MATrix LABratory –Originally, it was a front-end to FORTRAN matrix routines developed in the U. of New Mexico and Stanford –Today.
January 24, 2005 Lecture 3 - By P. Lin 1 CPET 190 Lecture 3 Problem Solving with MATLAB
MATLAB File Management. MATLAB User File Management Matlab provides a group of commands to manage user files. For more information, type help iofun. pwd.
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 MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
You can make this in matlab!. Matlab Introduction and Matrices.
Fortran 1- Basics Chapters 1-2 in your Fortran book.
MATLAB Tutorials Session I Introduction to MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU.
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.
MATLAB WORKSHOP FOR EE 327FOR EE 327 MWF 8: AMMWF 8: AM August 26-30, 2002August 26-30, 2002 Dr. Ali A. Jalali.
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.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Computational Methods of Scientific Programming Lecturers Thomas A Herring, Room A, Chris Hill, Room ,
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Windows Tutorial Common Objects ACOS: 1, 4. Using the Taskbar 1. Using the taskbar, you can switch between open programs and between open documents within.
MATLAB Basics. The following screen will appear when you start up Matlab. All of the commands that will be discussed should be typed at the >> prompt.
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.
1 MatLab Basics Jae Hoon Kim Department of Physics Kangwon National University It contains hundreds of commands to do mathematics. Graph functions, solve.
Getting Started with MATLAB 1. Fundamentals of MATLAB 2. Different Windows of MATLAB 1.
CMPS 1371 Introduction to Computing for Engineers MatLab.
MATLAB Harri Saarnisaari, Part of Simulations and Tools for Telecommunication Course.
Excel Lesson 1 Excel Basics
Basics of MATLAB By DR. Wafaa Shabana
Chapter Two Creating a First Project in Visual Basic.
Chapter 3 MATLAB Fundamentals Introduction to MATLAB Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
ME6104: CAD. Module 4. ME6104: CAD. Module 4. Systems Realization Laboratory Module 4 Matlab ME 6104 – Fundamentals of Computer-Aided Design.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
1 DKT 211 Basic Communication Engineering LAB # 1A : (Lecture 1) Introduction to Matlab  Basic Features  Scientific features  Array Operations  Script.
1 Lecture 1 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
CSE123 Lecture 3 Files and File ManagementScripts.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
BRIAN D. HAHN AND DANIEL T. VALENTINE THIRD EDITION Essential MATLAB® for Engineers and Scientists.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
Matlab for Engineers Matlab Environment Chapter 2.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
An Introduction to Programming in Matlab Emily Blumenthal
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
Key Applications Module Lesson 12 — Word Essentials Computer Literacy BASICS.
MATLAB The name of MATLAB stands for matrix laboratory. Starting a MATLAB Session -On Microsoft® Windows® platforms, start the MATLAB program by double-clicking.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
Introduction to Matlab
Release Numbers MATLAB is updated regularly
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Welcome to MATLAB.
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Use of Mathematics using Technology (Maltlab)
Digital Image Processing
Communication and Coding Theory Lab(CS491)
Experiment No. (1) - an introduction to MATLAB
Introduction To MATLAB
Chapter 2 MATLAB Environment
Presentation transcript:

NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started Networks and Communication Department 1

Lecture Contents Networks and Communication Department  Getting Started.  The MATLAB Desktop.  Command window.  Command History window.  Current Folder window.  Workspace window.  Matlab menu bar. 2

Matrix Laboratory Networks and Communication Department 3  Matlab = Matrix Laboratory  A software environment for interactive numerical computations  Examples:  Matrix computations and linear algebra  Solving nonlinear equations  Numerical solution of differential equations  Mathematical optimization  Statistics and data analysis  Signal processing  Modelling of dynamical systems  Solving partial differential equations  Simulation of engineering systems

MATLAB Toolboxes Networks and Communication Department 4  MATLAB has a number of add-on software modules, called toolboxes, that perform more specialized computations.  Signal & Image Processing Signal Processing- Image Processing Communications – System Identification - Wavelet Filter Design  Control Design Control System - Fuzzy Logic - Robust Control - μ -Analysis and Synthesis - LMI Control Model Predictive Control More than 60 toolboxes!

Simulink Networks and Communication Department 5  Simulink - a package for modeling dynamic systems.

Simulink (Cont.) Networks and Communication Department 6  Analyzing results:

Getting Started. Networks and Communication Department 7  MATLAB offers engineers, scientists, and mathematicians an intuitive language for expressing problems and their solutions mathematically and graphically.  It integrates computation, visualization, and programming in a flexible, open environment.  Complex numeric and symbolic problems can be solved in a fraction of the time required with other languages such as C, Fortran, or Java.

The MATLAB Desktop Networks and Communication Department 8  MATLAB has an extensive graphical user interface. When MATLAB starts, the main MATLAB window appears.  The Desktop menu controls the layout and appearance of the windows and gives you a list of the windows you can use.

Networks and Communication Department 9

10 The MATLAB environment is command oriented

Networks and Communication Department 11 The first four appear by default, the first time you use MATLAB.

Networks and Communication Department 12 The Start button in the bottom left corner of the MATLAB Desktop brings up demos, tools, and other windows.

Networks and Communication Department 13 All MATLAB windows are docked in the default desktop, which means that they are tiled on the main MATLAB window. Docked window Undocked window

Command window Networks and Communication Department 14 MATLAB expressions and statements are evaluated as you type them in the Command Window, and results of the computation are displayed there too.

Command window Networks and Communication Department 15  MATLAB expressions and statements are evaluated as you type them in the Command Window, and results of the computation are displayed there too.  Expressions and statements are also used in M-files (see it later).  They are usually of the form: or simply:

Command window (Cont.) Networks and Communication Department 16  Expressions are usually composed from operators, functions, and variable names.  Evaluation of the expression produces a matrix (or other data type), which is then displayed on the screen or assigned to a variable for future use.  If the variable name and = sign are omitted, a variable ans (for answer) is automatically created to which the result is assigned.

Command window (Cont.) Networks and Communication Department 17  A statement is normally terminated at the end of the line. However, a statement can be continued to the next line with three periods (...) at the end of the line.  Several statements can be placed on a single line separated by commas or semicolons.  MATLAB is case-sensitive in the names of commands, functions, and variables, so A and a are two different variables.

Command window (Cont.) Networks and Communication Department 18  A comma or blank separates the elements within a row of a matrix (sometimes a comma is necessary to split the expressions, because a blank can be ambiguous).  A semicolon ends a row.

Command window (Cont.) Networks and Communication Department 19  You can save the Command Window dialog with the diary command:  This causes what appears subsequently in the Command Window to be written to the named file (if the filename is omitted, it is written to a default file named diary) until you type the command diary off; the command diary on causes writing to the file to resume.  When finished, you can edit the file as desired and print it out.

Command window (Cont.) Networks and Communication Department 20  Tab completion is another helpful shortcut. It works in both the Command Window and the Editor.  Start typing a command name, a variable name, or a filename. Before you type it all in, hit the tab key. Try typing z then a tab. A list of all the functions and variables that start with z will pop up. Select one from the list, or keep typing to narrow down the selection.

Command window (Cont.) Networks and Communication Department 21  You can clear the Command Window with the clc command or with Edit > Clear Command Window.

Command History window Networks and Communication Department 22 This window lists the commands typed in so far. You can re-execute one more commands from this window by double-clicking or dragging the command(s) into the Command Window.

Current Folder window Networks and Communication Department 23 The Current Folder window displays a list of the files in your current folder. The name of this folder also appears at the top of the main MATLAB window, in the MATLAB Toolbar. Your current folder is the first place MATLAB looks for your M-files, and for workspace (.mat) files containing data that you load and save. MATLAB also looks in all the folders in your MATLAB path. Folders that are not on your MATLAB path are shown in gray.

Current Folder window (Cont.) Networks and Communication Department 24  The commands: pwd returns the name of the current folder. cd changes the current folder. dir lists the contents of the current folder, what lists only the MATLAB-specific files in the folder grouped by file type. delete and type can be used to delete a file and display a file in the Command Window, respectively.

Workspace window Networks and Communication Department 25 The Workspace window lists variables that you have either entered or computed in your MATLAB session.

Workspace window (Cont.) Networks and Communication Department 26  All the matrices and other variables that you create, except those internal to M-files, are shown in your Workspace window.  Double-clicking on a variable in the Workspace window pulls up the Variable Editor.

Workspace window (Cont.) Networks and Communication Department 27  The command: whos lists the variables currently in the workspace. clear variablename clear a variable or a function from the workspace. (or by right-clicking the variable in the Workspace window and selecting Delete) clear clears all variables from the workspace.

Workspace window (Cont.) Networks and Communication Department 28  When you log out or exit MATLAB, all variables are lost. However, invoking the command save before exiting writes all variables to a binary file named matlab.mat in the current folder.  When you later reenter MATLAB, the command load restores the workspace to its former state.

Matlab menu bar Networks and Communication Department 29

Matlab menu bar(Cont.) Networks and Communication Department 30

Matlab menu bar (Cont.) Networks and Communication Department 31

Matlab menu bar (Cont.) Networks and Communication Department 32

Matlab menu bar (Cont.) Networks and Communication Department 33

Matlab menu bar (Cont.) Networks and Communication Department 34

Matlab menu bar (Cont.) Networks and Communication Department 35

Some Useful MATLAB commands Networks and Communication Department 36

Math Networks and Communication Department 37  MATLAB can do simple math just as a calculator.

Interactive Calculations Networks and Communication Department 38  Matlab is interactive, no need to declare variables.  Most elementary functions and constants are already defined.

Functions Networks and Communication Department 39  MATLAB has many built-in functions.  Some math functions are:

The Help System Networks and Communication Department 40

The help system example Networks and Communication Department 41

MATLAB Variable Names Networks and Communication Department 42  Variable names ARE case sensitive  Variable names can contain up to 63 characters (as of MATLAB 6.5 and newer)  Variable names must start with a letter followed by letters, digits, and underscores.

MATLAB Special Variables Networks and Communication Department 43

MATLAB Math & Assignment Operators Networks and Communication Department 44

Any Questions ? The End 45 Networks and Communication Department