FDP on Electronic Design Tools - Fundamentals of MATLAB 12/12/2017. A hands-on training session on. Fundamentals of MATLAB

Size: px
Start display at page:

Download "FDP on Electronic Design Tools - Fundamentals of MATLAB 12/12/2017. A hands-on training session on. Fundamentals of MATLAB"

Transcription

1 A hands-on training session on Fundamentals of MATLAB in connection with the FDP on Electronic Design GCE Kannur 11 th 15 th December 2017 Resource Person : Dr. A. Ranjith Ram Associate Professor, ECE Dept. Govt. College of Engineering Kannur Cell : arr@gcek.ac.in Objective : Getting familiarized with MATLAB 62 Slides & 180 Minutes (9:00 AM 12:30 PM) Outline Introduction MATLAB and Simulink Toolboxes & Built-in Functions Help & Documentation Matrix Algebra Polynomials and Roots Trigonometric Functions One Dimensional Plots Developing and running MATLAB scripts Dr. A. Ranjith Ram arr@gcek.ac.in 1

2 Introduction to MATLAB & Simulink 30 Minutes About MATLAB MATLAB MATrix LABoratory a product by MathWorks Inc., USA High Performance Computing Environment Completely written using C Language Unlike C, it is a Column Major Language Available for both Windows and Linux Version : R2013a or R Release 2013 Year a First half; b Second Half Dr. A. Ranjith Ram arr@gcek.ac.in 2

3 The Company MathWorks Founded in 1984 by Jack Little (President) and Cleve Moler (Chief Scientist) at Natick, USA In addition to MATLAB, Jack Little Cleve Moler MathWorks develops Simulink, a product for simulating linear and nonlinear dynamic systems Website : MATLAB & Simulink MATLAB uses an algorithmic approach for programming and is a CUI based computing environment Simulink, on the other hand, uses block diagram based approach and hence, is a GUI based one. One can say that Simulink is built on MATLAB However, one has to purchase Simulink along with MATLAB, if he/she requires Simulink MATLAB functions resides in the respective Toolboxes Simulink boxes are residing in the respective Blocksets Dr. A. Ranjith Ram arr@gcek.ac.in 3

4 Where we fit MATLAB? MATLAB High Level Languages such as Pascal, C, C++ etc. Assembly Language Machine Language Features of MATLAB MATLAB treats every data as a matrix! MATLAB is an interpreted language, not a compiler based one MATLAB does not need any variable declarations MATLAB does not require any dimension statements MATLAB has no packaging MATLAB does not need any storage allocation MATLAB does not require any pointers MATLAB programs can be run step by step, with full access to all variables, functions etc. Dr. A. Ranjith Ram arr@gcek.ac.in 4

5 Why it is different from C? No need for defining the data types, i.e., int a; double b; float c; All variables are created with double precision unless specified otherwise Example: >> A = 10; >> f = 1.0; After these statements, the variables A and w are 1 x 1 matrices with double precision Programming Environment 60 Minutes Dr. A. Ranjith Ram arr@gcek.ac.in 5

6 How to Open Double Clicking the emblem Version Product Company MATLAB Desktop Current Folder Command Window Workspace Command History Dr. A. Ranjith Ram 6

7 MATLAB Desktop Ready or Not Ready? Ready Not Ready! Using the Command Window A = 10 Assignment f = 1.0; Putting a semicolon will suppress the output in the command window b = (pi/180) * theta theta should be defined! name = Sachin ; If there is not an assignment, MATLAB character array (string) c = f < 1 ; logical variable will automatically assign the value to a default ans variable! Dr. A. Ranjith Ram arr@gcek.ac.in 7

8 Using Command Window (Contd ) Clearing commands clc ; clears the command window clear ; clears the workspace Use the up-arrow ( ) for fetching the previous command Preferences Creating a Row Vector r = [ ] or [1, 0, 3, 2] Delimiter is a space or comma Enclosed in square braces MATLAB takes the above as r = [ ] n = [1:10] or 1:10 MATLAB takes the above as n = [ ] k = [3:2:15] or 3:2:15 MATLAB takes the above as k = [ ] Dr. A. Ranjith Ram arr@gcek.ac.in 8

9 Creating a Row Vector linspace Suppose we want N number of data points in the interval (x 1, x 2 ) The previous method fails here as one has to compute the step size explicitly, and one is advised to use linspace function here. linspace linearly spaced vector take care of this situation in MATLAB linspace(x1, X2) generates a row vector of 100 linearly equally spaced points between X1 and X2. linspace(x1, X2, N) generates N points between X1 and X2. For N = 1, linspace returns X2 linspace is useful in many signal processing and plotting situations. linspace(1,10,13); Creating a Column Vector c = [1; 0; 3; 2] Delimiter is a semicolon Enclosed in square braces MATLAB takes the above as 1 0 c = 3 2 Transposing operation : using r = 2:3:10 ; c = r ; Dr. A. Ranjith Ram arr@gcek.ac.in 9

10 Creating an M x N Matrix m = [1 0 3; 4 2 0; 0 1 5]; Delimiters are spaces and semicolons Enclosed in square braces MATLAB takes the above as c = A semicolon inside the square bracket means an end of a row Semicolon outside the square bracket has a different meaning! m = [1:3; 4:6; 7:9]; MATLAB is Simple Powerful! Dealing with matrices is very easy in MATLAB We can concatenate matrices without using a for loop! a = [1; 2; 3; 4]; b = [5; 7; 8; 9] c = [a b]; Guess c = [a ; b] here! In a similar way, a = [ ]; b = [ ] c = [a ; b]; Guess c = [a b] here! Dr. A. Ranjith Ram arr@gcek.ac.in 10

11 Variable Classes or Data Types MATLAB supports several classes of variables (or data types) Numeric Character Logical Structure Cell array Data Types (Contd ) Dr. A. Ranjith Ram arr@gcek.ac.in 11

12 MATLAB Toolboxes Aerospace Toolbox Image Processing Toolbox Bioinformatics Toolbox Instrument Control Toolbox Communications System Toolbox Mapping Toolbox Computer Vision System Toolbox Model Predictive Control Toolbox Control System Toolbox Model-Based Calibration Toolbox Curve Fitting Toolbox Neural Network Toolbox Data Acquisition Toolbox Optimization Toolbox Database Toolbox Parallel Computing Toolbox DSP System Toolbox Partial Differential Equation Toolbox Econometrics Toolbox Phased Array System Toolbox Financial Toolbox RF Toolbox Fuzzy Logic Toolbox Robust Control Toolbox Image Acquisition Toolbox Signal Processing Toolbox Some Built-in Functions sin() plot() cos() stem() inv() surf() eye() mesh() rand() fft() ones() abs() zeros() eig() size() rank() length() ceil() max() round() min() sum() fliplr() prod() flipud() linspace() Dr. A. Ranjith Ram 12

13 Help / Documentation help function_name or doc function_name Help Menu Search Tea Break! 10 Minutes Dr. A. Ranjith Ram arr@gcek.ac.in 13

14 Matrix Algebra 40 Minutes Matrix Addition & Subtraction Matrix addition : + a = [ ]; b = [ ]; c = a + b yields c = [ ] Matrix subtraction : a = [ ]; b = [ ]; c = a - b yields c = [ ] Both the matrices should be of the same dimensions. Equivalent to addition and subtraction of two signals Dr. A. Ranjith Ram arr@gcek.ac.in 14

15 Matrix Multiplication Matrix multiplication : * a = [ ; ]; b = [3 1; 1 2; 0 1; 2 3]; c = a * b yields c = [ ] Both a & b should be conformable to multiplication a should be of dimension M x N and b should be of N x K The result will be of M x K dimension Multiplication by a scalar is also done using * The function equivalent to * is mtimes() c = mtimes(a, b) Signal Product Signal multiplication is done using.*.* will compute the element-by-element product a = 1:5; b = 2:6; c = a.* b will yield c = [ ] Matrix dimensions must match. Will output a signal of same dimension Is useful is many signal processing operations The function equivalent to.* is times() Check: pow = a.* a; and pow = a.^ 2; Dr. A. Ranjith Ram arr@gcek.ac.in 15

16 Matrix Division (?) 1. Matrix division using / a = [1 2 3; 0 1 2; 3 0 4]; b = [3 0 1; 1 2 0; 0 1 3]; c = a / b yields c = [ ] a / b computes a * inv(b) 2. Matrix division using \ a \ b computes inv(a) * b Find the inverse of a using \ a \ eye(size(a)) Matrix Indexing and Addressing In MATLAB, the indexing is from 1 to N, unlike from 0 to N 1 in DSP theory or C Language This practicality is to be taken care of when the an algorithm in theoretical DSP is getting implemented using MATLAB normal braces ( ) are used for addressing elements of a matrix temp(5,10) selects the element in the 5 th row and 10 th column of the matrix temp marks(:,3) selects the third column of the matrix marks marks(2,:) selects the second raw of the matrix marks lena(:,:,2) selects the green component of the colour image lena face(20:50,30:60,:) will select a rectangular region of the colour image face Dr. A. Ranjith Ram arr@gcek.ac.in 16

17 Other Methods of Indexing In MATLAB, indexing has more advanced features One can use a vector for indexing another vector. For example, >> a = [ ]; >> b = [2 4 6]; >> a(b) will yield >> ans = This is a powerful indexing method in MATLAB Another type of indexing is logical indexing, which would be covered later, in a higher level of this training Functions for Matrices inv(a) inverse of the matrix a eye(n) identity matrix of dimension, N x N rand(n) a square matrix of dimension N x N ones(n) and zeros(n) square matrices of 0 s & 1 s size(a) and length(a) length = max(size(a)) max() and min() max & min of the columns fliplr() and flipud() flipping left-right & up-down eig(a) eigen values of the matrix a rank(a) rank of the matrix a sum(a) sum of the elements of a prod(a) product of the elements of a power() matrix power Dr. A. Ranjith Ram arr@gcek.ac.in 17

18 Methods of Data Input & Output 10 Minutes Data Input Generally there are three ways of inputting data into MATLAB directly entering in the command line from memory read an excel file read a speech file read an image file from I/O devices input from a sensor input from a microphone input from a camera Dr. A. Ranjith Ram arr@gcek.ac.in 18

19 Data Input Examples fc = input('enter the carrier frequency: '); x = xlsread( table.xlsx'); wavread( aud.wav ); imread( lena.jpg ); S=load( filemname ); import menu import a file Data Output Generally there are three ways of outputting data from MATLAB directly flashing to command line to memory write an excel file write a speech file write an image file to I/O devices output to a DAC output to a loudspeaker output to a display Dr. A. Ranjith Ram arr@gcek.ac.in 19

20 Data Output Examples sprintf( The bandwidth is %d', bw) or display(bw) fid = fopen('exp.txt','w'); fprintf(fid,'%6.2f %12.8f\n',y); fclose(fid); xlswrite( t.xlsx,m) wavwrite(s,fs, au.wav ) / sound(s,fs) imwrite(y, img.jpg ) save( filename, var) / imshow(y) save menu Reserved Characters / Words 10 Minutes Dr. A. Ranjith Ram arr@gcek.ac.in 20

21 Characters and Meaning ; suppressing output in the command window = assignment + addition - subtraction * matrix product / post multiply with inverse \ pre multiply with inverse < less than > greater than ~ logical not & logical and logical or Characters and Meaning (Contd ). element wise operation, decimal point, structure field access.. parent directory continuation : range [ ] matrix entry ( ) addressing array elements, function { } cell array addressing % commenting ^ power string entity complex conjugate function handle Dr. A. Ranjith Ram arr@gcek.ac.in 21

22 Reserved Characters / Words i imaginary notation j do pi Inf infinity NaN not a number eps spacing of floating point numbers who prints variables in work space why answers to such a question. Do chat with MATLAB! beep produces a beep sound Basic Computing and Plotting 40 Minutes Dr. A. Ranjith Ram arr@gcek.ac.in 22

23 Roots of a Polynomial roots(c) computes the roots of the polynomial whose coefficients are the elements of the vector C If C has N+1 components, the polynomial is C(1) * X^N C(N) * X + C(N+1). C = [ ]; r = roots(c) yields r = [-2 1 1] p = poly(r) converts the roots to its polynomial yields p = [ ] One Dimensional Plots 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 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 stem() plots a signal in a sampled fashion bar() plots a signal in bar form stairs() plots a signal in staircase form scatter() plots in the form of scatter diagram Dr. A. Ranjith Ram arr@gcek.ac.in 23

24 Plotting Trigonometric Functions Let the time duration of the waveform be one second i.e., 0 1 second Let the amplitude be 10 and frequency be one Hertz. t = 0 : 0.01 : 1; f = 1; A = 10 ; x = A*sin(2*pi*f*t); plot(t, x); stem(t,x) This yields an output figure : Use close command to close a figure (close all : closes all figures) Ensure sufficient samples! t = 0:0.1:1; t = 0:0.01:1; Dr. A. Ranjith Ram arr@gcek.ac.in 24

25 Plotting More features Choosing colour and line width Adding title, x-label & y-label, grid lines and legends Choice of range of the independent and dependent variable axes plot(t,x, r, LineWidth,2); grid on; axis([ ]) title( The Sine Wave ); Amplitude xlabel( Time ); ylabel( Amplitude ); legend( Sin(2pift) ) \pi Multiple Plots in a Window Using subplot() function subplot initializes a tiled space in a figure window After subplot, a plot function is to be used for subplot(221) subplot(222) actual plotting subplot(223) subplot(224) Dr. A. Ranjith Ram arr@gcek.ac.in 25

26 Multiple Plots in a Window (Contd ) t = 1:200; subplot(221) plot(exp(-0.01*t), r ); subplot(222) plot(exp(-0.02*t), g ); subplot(223) plot(exp(-0.03*t), b ); subplot(224) plot(exp(-0.04*t), k ); Plots in Different Windows figure(1) plot(exp(-0.01*t), r ); figure(2) plot(exp(-0.02*t), g ); figure(3) plot(exp(-0.03*t), b ); figure(4) plot(exp(-0.04*t), k ); Dr. A. Ranjith Ram arr@gcek.ac.in 26

27 Plots on the Same Axes plot(exp(-0.01*t), r ); hold on; plot(exp(-0.02*t), g ); hold on; plot(exp(-0.03*t), b ); hold on; plot(exp(-0.04*t), k ); legend( e^{-0.01t}, e^{-0.02t}, e^{-0.03t},... e^{-0.04t} ) hold off; M-Files / Script Files 10 Minutes Dr. A. Ranjith Ram arr@gcek.ac.in 27

28 When to Create a Script File t = 0:0.01:1; f = 1.0; Command line based computation has x = 10*cos(2*pi*f*t); its own limitations plot(t, x, r ); title( The Sine Wave ); xlabel( Sampling Instants ); ylabel( Amplitude ); If one has to find/plot a function after changing the value of one of the variable, he/she has to execute all the subsequent commands one by one At this point, script files or m-files need to be created It is created using an editor which is having all the features like cut/copypaste, undo, indent, insert, save as, etc. Creating a Script File Click on the New Script menu on the MATLAB Desktop Dr. A. Ranjith Ram arr@gcek.ac.in 28

29 Developing a script file Enter all the instructions line-by-line in the editor Or, Select the group of commands from the command history and rightclick on the selection to create script Running a Script File Click on the Run Button on the Editor Menu Dr. A. Ranjith Ram arr@gcek.ac.in 29

30 Few Points on Script Files A script is to be saved before running it (for the first time) MATLAB saves the script is the current directory by default If the user saves the script in another folder, MATLAB will ask for the options of Change Folder or Set Path while running Opt Change Folder. Then you will be using MATLAB from your folder Care should be given on aming the script file : The filename should always start with an alphabet! The filename should not be the same as any of the built-in functions! Spaces can not appear in between! One can use underscore (_) or hyphen ( ) to connect words Adopt your own policy when naming script files. It may be better to reflect the purpose for which the program is developed. Exercises 1) Plot the function x(t) = e at 2) Plot the function x(t) = 1 e at 3) Plot the function x(t) = 6 Sin(at) 4 Cos(bt) 4) Plot the function x(t) = Cos(bt) e at 5) Plot the function f(x) = sinc(x) 6) Plot the function f(x) = (1/ 2πσ) e (x μ)2 / 2σ 2 7) Plot the function x(n) = e an 8) Plot the function x(n) = 6 Sin(an) 4 Cos(bn) Dr. A. Ranjith Ram arr@gcek.ac.in 30

31 Part I : Summary Familiarized with MATLAB desktop, toolboxes, variable classes and some built-in functions Performed simple computations using the command prompt, reviewed fundamentals of linear algebra using MATLAB Differentiated the matrix product from signal product Studied how to seek help in the command prompt and how to use the help menu Learnt the various methods of data input and output Computed the roots of a polynomial and obtained the polynomial from a root set Learnt how to plot one dimensional (1-D) curves Studied how to create and run the MATLAB script files Thanks Courtesy : 1. MathWorks Training & Services, Bengaluru 2. TEQIP Project Phase-II, GCE Kannur arr@gcek.ac.in Mob : Dr. A. Ranjith Ram arr@gcek.ac.in 31

FDP on Electronic Design Tools - Computing with MATLAB 13/12/2017. A hands-on training session on. Computing with MATLAB

FDP on Electronic Design Tools - Computing with MATLAB 13/12/2017. A hands-on training session on. Computing with MATLAB A hands-on training session on Computing with MATLAB in connection with the FDP on Electronic Design Tools @ GCE Kannur 11 th 15 th December 2017 Resource Person : Dr. A. Ranjith Ram Associate Professor,

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab By:Mohammad Sadeghi *Dr. Sajid Gul Khawaja Slides has been used partially to prepare this presentation Outline: What is Matlab? Matlab Screen Basic functions Variables, matrix, indexing

More information

Matlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen.

Matlab Tutorial. Get familiar with MATLAB by using tutorials and demos found in MATLAB. You can click Start MATLAB Demos to start the help screen. University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2015 Matlab Tutorial 1 Overview The goal of this tutorial is to help you get familiar with MATLAB

More information

2.0 MATLAB Fundamentals

2.0 MATLAB Fundamentals 2.0 MATLAB Fundamentals 2.1 INTRODUCTION MATLAB is a computer program for computing scientific and engineering problems that can be expressed in mathematical form. The name MATLAB stands for MATrix LABoratory,

More information

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX 1) Objective The objective of this lab is to review how to access Matlab, Simulink, and the Communications Toolbox, and to become familiar

More information

Introduction to Matlab. By: Dr. Maher O. EL-Ghossain

Introduction to Matlab. By: Dr. Maher O. EL-Ghossain Introduction to Matlab By: Dr. Maher O. EL-Ghossain Outline: q What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators (Arithmetic, relational, logical ) Display Facilities Flow Control

More information

MATLAB/Octave Tutorial

MATLAB/Octave Tutorial University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 298JA Fall 2017 MATLAB/Octave Tutorial 1 Overview The goal of this tutorial is to help you get familiar

More information

Introduction to MATLAB

Introduction to MATLAB CHEE MATLAB Tutorial Introduction to MATLAB Introduction In this tutorial, you will learn how to enter matrices and perform some matrix operations using MATLAB. MATLAB is an interactive program for numerical

More information

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

A Guide to Using Some Basic MATLAB Functions

A Guide to Using Some Basic MATLAB Functions A Guide to Using Some Basic MATLAB Functions UNC Charlotte Robert W. Cox This document provides a brief overview of some of the essential MATLAB functionality. More thorough descriptions are available

More information

Introduction to MATLAB. Simon O Keefe Non-Standard Computation Group

Introduction to MATLAB. Simon O Keefe Non-Standard Computation Group Introduction to MATLAB Simon O Keefe Non-Standard Computation Group sok@cs.york.ac.uk Content n An introduction to MATLAB n The MATLAB interfaces n Variables, vectors and matrices n Using operators n Using

More information

ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah)

ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah) Introduction ELEC4042 Signal Processing 2 MATLAB Review (prepared by A/Prof Ambikairajah) MATLAB is a powerful mathematical language that is used in most engineering companies today. Its strength lies

More information

Introduction to MATLAB

Introduction to MATLAB 58:110 Computer-Aided Engineering Spring 2005 Introduction to MATLAB Department of Mechanical and industrial engineering January 2005 Topics Introduction Running MATLAB and MATLAB Environment Getting help

More information

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB?

Appendix A. Introduction to MATLAB. A.1 What Is MATLAB? Appendix A Introduction to MATLAB A.1 What Is MATLAB? MATLAB is a technical computing environment developed by The Math- Works, Inc. for computation and data visualization. It is both an interactive system

More information

MATLAB Tutorial EE351M DSP. Created: Thursday Jan 25, 2007 Rayyan Jaber. Modified by: Kitaek Bae. Outline

MATLAB Tutorial EE351M DSP. Created: Thursday Jan 25, 2007 Rayyan Jaber. Modified by: Kitaek Bae. Outline MATLAB Tutorial EE351M DSP Created: Thursday Jan 25, 2007 Rayyan Jaber Modified by: Kitaek Bae Outline Part I: Introduction and Overview Part II: Matrix manipulations and common functions Part III: Plots

More information

MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY

MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY MATLAB Basics EE107: COMMUNICATION SYSTEMS HUSSAIN ELKOTBY What is MATLAB? MATLAB (MATrix LABoratory) developed by The Mathworks, Inc. (http://www.mathworks.com) Key Features: High-level language for numerical

More information

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks

MATLAB Basics. Configure a MATLAB Package 6/7/2017. Stanley Liang, PhD York University. Get a MATLAB Student License on Matworks MATLAB Basics Stanley Liang, PhD York University Configure a MATLAB Package Get a MATLAB Student License on Matworks Visit MathWorks at https://www.mathworks.com/ It is recommended signing up with a student

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 1 Chapter 2 MATLAB Fundamentals PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

More information

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures

Introduction to Octave/Matlab. Deployment of Telecommunication Infrastructures Introduction to Octave/Matlab Deployment of Telecommunication Infrastructures 1 What is Octave? Software for numerical computations and graphics Particularly designed for matrix computations Solving equations,

More information

Chapter 2. MATLAB Fundamentals

Chapter 2. MATLAB Fundamentals Chapter 2. MATLAB Fundamentals Choi Hae Jin Chapter Objectives q Learning how real and complex numbers are assigned to variables. q Learning how vectors and matrices are assigned values using simple assignment,

More information

DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab

DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab Islamic University of Gaza Faculty of Engineering Electrical Engineering Department 2012 DSP Laboratory (EELE 4110) Lab#1 Introduction to Matlab Goals for this Lab Assignment: In this lab we would have

More information

Introduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis

Introduction to Matlab. Summer School CEA-EDF-INRIA 2011 of Numerical Analysis Introduction to Matlab 1 Outline What is Matlab? Matlab desktop & interface Scalar variables Vectors and matrices Exercise 1 Booleans Control structures File organization User defined functions Exercise

More information

MATLAB Fundamentals. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University

MATLAB Fundamentals. Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University MATLAB Fundamentals Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University Reference: 1. Applied Numerical Methods with MATLAB for Engineers, Chapter 2 &

More information

Introduction to MATLAB

Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 Software Philosophy Matrix-based numeric computation MATrix LABoratory built-in support for standard matrix and vector operations High-level programming language Programming

More information

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER

UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER UNIVERSITI TEKNIKAL MALAYSIA MELAKA FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER FAKULTI KEJURUTERAAN ELEKTRONIK DAN KEJURUTERAAN KOMPUTER BENC 2113 DENC ECADD 2532 ECADD LAB SESSION 6/7 LAB

More information

A Quick Tutorial on MATLAB. Zeeshan Ali

A Quick Tutorial on MATLAB. Zeeshan Ali A Quick Tutorial on MATLAB Zeeshan Ali MATLAB MATLAB is a software package for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It's name

More information

Lecture 2: Variables, Vectors and Matrices in MATLAB

Lecture 2: Variables, Vectors and Matrices in MATLAB Lecture 2: Variables, Vectors and Matrices in MATLAB Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 1 and Chapter 2. Variables

More information

Lecturer: Keyvan Dehmamy

Lecturer: Keyvan Dehmamy MATLAB Tutorial Lecturer: Keyvan Dehmamy 1 Topics Introduction Running MATLAB and MATLAB Environment Getting help Variables Vectors, Matrices, and linear Algebra Mathematical Functions and Applications

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

Matlab is a tool to make our life easier. Keep that in mind. The best way to learn Matlab is through examples, at the computer.

Matlab is a tool to make our life easier. Keep that in mind. The best way to learn Matlab is through examples, at the computer. Learn by doing! The purpose of this tutorial is to provide an introduction to Matlab, a powerful software package that performs numeric computations. The examples should be run as the tutorial is followed.

More information

Finding, Starting and Using Matlab

Finding, Starting and Using Matlab Variables and Arrays Finding, Starting and Using Matlab CSC March 6 &, 9 Array: A collection of data values organized into rows and columns, and known by a single name. arr(,) Row Row Row Row 4 Col Col

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab 1 Outline: What is Matlab? Matlab Screen Variables, array, matrix, indexing Operators (Arithmetic, relational, logical ) Display Facilities Flow Control Using of M-File Writing User

More information

MATLAB Tutorial. Digital Signal Processing. Course Details. Topics. MATLAB Environment. Introduction. Digital Signal Processing (DSP)

MATLAB Tutorial. Digital Signal Processing. Course Details. Topics. MATLAB Environment. Introduction. Digital Signal Processing (DSP) Digital Signal Processing Prof. Nizamettin AYDIN naydin@yildiz.edu.tr naydin@ieee.org http://www.yildiz.edu.tr/~naydin Course Details Course Code : 0113620 Course Name: Digital Signal Processing (Sayısal

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB 1 Introduction to MATLAB A Tutorial for the Course Computational Intelligence http://www.igi.tugraz.at/lehre/ci Stefan Häusler Institute for Theoretical Computer Science Inffeldgasse

More information

Introduction to MATLAB Programming

Introduction to MATLAB Programming Introduction to MATLAB Programming Arun A. Balakrishnan Asst. Professor Dept. of AE&I, RSET Overview 1 Overview 2 Introduction 3 Getting Started 4 Basics of Programming Overview 1 Overview 2 Introduction

More information

CDA5530: Performance Models of Computers and Networks. Chapter 8: Using Matlab for Performance Analysis and Simulation

CDA5530: Performance Models of Computers and Networks. Chapter 8: Using Matlab for Performance Analysis and Simulation CDA5530: Performance Models of Computers and Networks Chapter 8: Using Matlab for Performance Analysis and Simulation Objective Learn a useful tool for mathematical analysis and simulation Interpreted

More information

Introduction to MATLAB. Computational Probability and Statistics CIS 2033 Section 003

Introduction to MATLAB. Computational Probability and Statistics CIS 2033 Section 003 Introduction to MATLAB Computational Probability and Statistics CIS 2033 Section 003 About MATLAB MATLAB (MATrix LABoratory) is a high level language made for: Numerical Computation (Technical computing)

More information

Introduction to. The Help System. Variable and Memory Management. Matrices Generation. Interactive Calculations. Vectors and Matrices

Introduction to. The Help System. Variable and Memory Management. Matrices Generation. Interactive Calculations. Vectors and Matrices Introduction to Interactive Calculations Matlab is interactive, no need to declare variables >> 2+3*4/2 >> V = 50 >> V + 2 >> V Ans = 52 >> a=5e-3; b=1; a+b Most elementary functions and constants are

More information

CDA6530: Performance Models of Computers and Networks. Chapter 4: Using Matlab for Performance Analysis and Simulation

CDA6530: Performance Models of Computers and Networks. Chapter 4: Using Matlab for Performance Analysis and Simulation CDA6530: Performance Models of Computers and Networks Chapter 4: Using Matlab for Performance Analysis and Simulation Objective Learn a useful tool for mathematical analysis and simulation Interpreted

More information

PART 1 PROGRAMMING WITH MATHLAB

PART 1 PROGRAMMING WITH MATHLAB PART 1 PROGRAMMING WITH MATHLAB Presenter: Dr. Zalilah Sharer 2018 School of Chemical and Energy Engineering Universiti Teknologi Malaysia 23 September 2018 Programming with MATHLAB MATLAB Environment

More information

SMS 3515: Scientific Computing Lecture 1: Introduction to Matlab 2014

SMS 3515: Scientific Computing Lecture 1: Introduction to Matlab 2014 SMS 3515: Scientific Computing Lecture 1: Introduction to Matlab 2014 Instructor: Nurul Farahain Mohammad 1 It s all about MATLAB What is MATLAB? MATLAB is a mathematical and graphical software package

More information

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing

SECTION 1: INTRODUCTION. ENGR 112 Introduction to Engineering Computing SECTION 1: INTRODUCTION ENGR 112 Introduction to Engineering Computing 2 Course Overview What is Programming? 3 Programming The implementation of algorithms in a particular computer programming language

More information

EE-3221 MATLAB INTRODUCTION

EE-3221 MATLAB INTRODUCTION MATLAB INTRODUCTION Goal Become familiar with MATLAB and its ability to manipulate and plot discrete signals (sequences of numbers). Background MATLAB is an industry-standard software package for processing

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB (MATrix LABoratory) Presented By: Dr Mostafa Elshahed Asst. Prof. 1 Upon completing this course, the student should be able to: Learn a brief introduction to programming in MATLAB.

More information

MATLAB for beginners. KiJung Yoon, 1. 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA

MATLAB for beginners. KiJung Yoon, 1. 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA MATLAB for beginners KiJung Yoon, 1 1 Center for Learning and Memory, University of Texas at Austin, Austin, TX 78712, USA 1 MATLAB Tutorial I What is a matrix? 1) A way of representation for data (# of

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 3 Creating, Organising & Processing Data Dr Richard Greenaway 3 Creating, Organising & Processing Data In this Workshop the matrix type is introduced

More information

Eric W. Hansen. The basic data type is a matrix This is the basic paradigm for computation with MATLAB, and the key to its power. Here s an example:

Eric W. Hansen. The basic data type is a matrix This is the basic paradigm for computation with MATLAB, and the key to its power. Here s an example: Using MATLAB for Stochastic Simulation. Eric W. Hansen. Matlab Basics Introduction MATLAB (MATrix LABoratory) is a software package designed for efficient, reliable numerical computing. Using MATLAB greatly

More information

CDA6530: Performance Models of Computers and Networks. Chapter 4: Using Matlab for Performance Analysis and Simulation

CDA6530: Performance Models of Computers and Networks. Chapter 4: Using Matlab for Performance Analysis and Simulation CDA6530: Performance Models of Computers and Networks Chapter 4: Using Matlab for Performance Analysis and Simulation Objective Learn a useful tool for mathematical analysis and simulation Interpreted

More information

Introduction to MATLAB

Introduction to MATLAB ELG 3125 - Lab 1 Introduction to MATLAB TA: Chao Wang (cwang103@site.uottawa.ca) 2008 Fall ELG 3125 Signal and System Analysis P. 1 Do You Speak MATLAB? MATLAB - The Language of Technical Computing ELG

More information

A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING TABLE OF CONTENTS

A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING TABLE OF CONTENTS A GUIDE FOR USING MATLAB IN COMPUTER SCIENCE AND COMPUTER ENGINEERING MARC THOMAS AND CHRISTOPHER PASCUA TABLE OF CONTENTS 1. Language Usage and Matlab Interface 1 2. Matlab Global Syntax and Semantic

More information

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Homework 1

Signals and Systems Profs. Byron Yu and Pulkit Grover Fall Homework 1 18-290 Signals and Systems Profs. Byron Yu and Pulkit Grover Fall 2018 Homework 1 This homework is due in class on Thursday, September 6, 9:00am. Instructions Solve all non-matlab problems using only paper

More information

A General Introduction to Matlab

A General Introduction to Matlab Master Degree Course in ELECTRONICS ENGINEERING http://www.dii.unimore.it/~lbiagiotti/systemscontroltheory.html A General Introduction to Matlab e-mail: luigi.biagiotti@unimore.it http://www.dii.unimore.it/~lbiagiotti

More information

LAB 1: Introduction to MATLAB Summer 2011

LAB 1: Introduction to MATLAB Summer 2011 University of Illinois at Urbana-Champaign Department of Electrical and Computer Engineering ECE 311: Digital Signal Processing Lab Chandra Radhakrishnan Peter Kairouz LAB 1: Introduction to MATLAB Summer

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms

More information

Digital Image Analysis and Processing CPE

Digital Image Analysis and Processing CPE Digital Image Analysis and Processing CPE 0907544 Matlab Tutorial Dr. Iyad Jafar Outline Matlab Environment Matlab as Calculator Common Mathematical Functions Defining Vectors and Arrays Addressing Vectors

More information

Introduction to MATLAB for Engineers, Third Edition

Introduction to MATLAB for Engineers, Third Edition PowerPoint to accompany Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 2 Numeric, Cell, and Structure Arrays Copyright 2010. The McGraw-Hill Companies, Inc. This work is

More information

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens.

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. PC-MATLAB PRIMER This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. >> 2*3 ans = 6 PCMATLAB uses several lines for the answer, but I ve edited this to save space.

More information

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 1 6 3 Matlab 3.1 Fundamentals Matlab. The name Matlab stands for matrix laboratory. Main principle. Matlab works with rectangular

More information

Introduction to MATLAB

Introduction to MATLAB to MATLAB Spring 2019 to MATLAB Spring 2019 1 / 39 The Basics What is MATLAB? MATLAB Short for Matrix Laboratory matrix data structures are at the heart of programming in MATLAB We will consider arrays

More information

Experiment 1: Introduction to MATLAB I. Introduction. 1.1 Objectives and Expectations: 1.2 What is MATLAB?

Experiment 1: Introduction to MATLAB I. Introduction. 1.1 Objectives and Expectations: 1.2 What is MATLAB? Experiment 1: Introduction to MATLAB I Introduction MATLAB, which stands for Matrix Laboratory, is a very powerful program for performing numerical and symbolic calculations, and is widely used in science

More information

Getting started with MATLAB

Getting started with MATLAB Sapienza University of Rome Department of economics and law Advanced Monetary Theory and Policy EPOS 2013/14 Getting started with MATLAB Giovanni Di Bartolomeo giovanni.dibartolomeo@uniroma1.it Outline

More information

FDP on Electronic Design Tools Matlab for Control System Modeling 13/12/2017. A hands-on training session on

FDP on Electronic Design Tools Matlab for Control System Modeling 13/12/2017. A hands-on training session on A hands-on training session on MATLAB for Control System Modeling in connection with the FDP on Electronic Design Tools @ GCE Kannur 11 15 December 2017 Resource Person : Dr. A. Ranjith Ram Associate Professor,

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Zhiyu Zhao (sylvia@cs.uno.edu) The LONI Institute & Department of Computer Science College of Sciences University of New Orleans 03/02/2009 Outline What is MATLAB Getting Started

More information

Introduction to MATLAB LAB 1

Introduction to MATLAB LAB 1 Introduction to MATLAB LAB 1 1 Basics of MATLAB MATrix LABoratory A super-powerful graphing calculator Matrix based numeric computation Embedded Functions Also a programming language User defined functions

More information

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab MATH 495.3 (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab Below is a screen similar to what you should see when you open Matlab. The command window is the large box to the right containing the

More information

MATLAB INTRODUCTION. Risk analysis lab Ceffer Attila. PhD student BUTE Department Of Networked Systems and Services

MATLAB INTRODUCTION. Risk analysis lab Ceffer Attila. PhD student BUTE Department Of Networked Systems and Services MATLAB INTRODUCTION Risk analysis lab 2018 2018. szeptember 10., Budapest Ceffer Attila PhD student BUTE Department Of Networked Systems and Services ceffer@hit.bme.hu Előadó képe MATLAB Introduction 2

More information

MATLAB The first steps. Edited by Péter Vass

MATLAB The first steps. Edited by Péter Vass MATLAB The first steps Edited by Péter Vass MATLAB The name MATLAB is derived from the expression MATrix LABoratory. It is used for the identification of a software and a programming language. As a software,

More information

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013 Lab of COMP 406 MATLAB: Quick Start Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 1: 11th Sep, 2013 1 Where is Matlab? Find the Matlab under the folder 1.

More information

Learning from Data Introduction to Matlab

Learning from Data Introduction to Matlab Learning from Data Introduction to Matlab Amos Storkey, David Barber and Chris Williams a.storkey@ed.ac.uk Course page : http://www.anc.ed.ac.uk/ amos/lfd/ This is a modified version of a text written

More information

Image Processing CS 6640 : An Introduction to MATLAB Basics Bo Wang and Avantika Vardhan

Image Processing CS 6640 : An Introduction to MATLAB Basics Bo Wang and Avantika Vardhan Image Processing CS 6640 : An Introduction to MATLAB Basics Bo Wang and Avantika Vardhan August 29, 2014 1 Getting Started with MATLAB 1.1 Resources 1) CADE Lab: Matlab is installed on all the CADE lab

More information

Introduction to MatLab. Introduction to MatLab K. Craig 1

Introduction to MatLab. Introduction to MatLab K. Craig 1 Introduction to MatLab Introduction to MatLab K. Craig 1 MatLab Introduction MatLab and the MatLab Environment Numerical Calculations Basic Plotting and Graphics Matrix Computations and Solving Equations

More information

Chapter 1 Introduction to MATLAB

Chapter 1 Introduction to MATLAB Chapter 1 Introduction to MATLAB 1.1 What is MATLAB? MATLAB = MATrix LABoratory, the language of technical computing, modeling and simulation, data analysis and processing, visualization and graphics,

More information

LabVIEW MathScript Quick Reference

LabVIEW MathScript Quick Reference Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics LabVIEW MathScript Quick Reference Hans-Petter Halvorsen, 2012.06.14 Faculty of Technology, Postboks

More information

Introduction to MATLAB for Numerical Analysis and Mathematical Modeling. Selis Önel, PhD

Introduction to MATLAB for Numerical Analysis and Mathematical Modeling. Selis Önel, PhD Introduction to MATLAB for Numerical Analysis and Mathematical Modeling Selis Önel, PhD Advantages over other programs Contains large number of functions that access numerical libraries (LINPACK, EISPACK)

More information

MATLAB Lecture 1. Introduction to MATLAB

MATLAB Lecture 1. Introduction to MATLAB MATLAB Lecture 1. Introduction to MATLAB 1.1 The MATLAB environment MATLAB is a software program that allows you to compute interactively with matrices. If you want to know for instance the product of

More information

Part #1. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr

Part #1. A0B17MTB Matlab. Miloslav Čapek Filip Kozák, Viktor Adler, Pavel Valtr A0B17MTB Matlab Part #1 Miloslav Čapek miloslav.capek@fel.cvut.cz Filip Kozák, Viktor Adler, Pavel Valtr Department of Electromagnetic Field B2-626, Prague You will learn Scalars, vectors, matrices (class

More information

MATLAB BASICS. M Files. Objectives

MATLAB BASICS. M Files. Objectives Objectives MATLAB BASICS 1. What is MATLAB and why has it been selected to be the tool of choice for DIP? 2. What programming environment does MATLAB offer? 3. What are M-files? 4. What is the difference

More information

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano MATLAB Lesson I Chiara Lelli Politecnico di Milano October 2, 2012 MATLAB MATLAB (MATrix LABoratory) is an interactive software system for: scientific computing statistical analysis vector and matrix computations

More information

Fundamentals of MATLAB Usage

Fundamentals of MATLAB Usage 수치해석기초 Fundamentals of MATLAB Usage 2008. 9 담당교수 : 주한규 joohan@snu.ac.kr, x9241, Rm 32-205 205 원자핵공학과 1 MATLAB Features MATLAB: Matrix Laboratory Process everything based on Matrix (array of numbers) Math

More information

Fall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB

Fall 2014 MAT 375 Numerical Methods. Introduction to Programming using MATLAB Fall 2014 MAT 375 Numerical Methods Introduction to Programming using MATLAB Some useful links 1 The MOST useful link: www.google.com 2 MathWorks Webcite: www.mathworks.com/help/matlab/ 3 Wikibooks on

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB MATLAB stands for MATrix LABoratory. Originally written by Cleve Moler for college linear algebra courses, MATLAB has evolved into the premier software for linear algebra computations

More information

MATLAB Introductory Course Computer Exercise Session

MATLAB Introductory Course Computer Exercise Session MATLAB Introductory Course Computer Exercise Session This course is a basic introduction for students that did not use MATLAB before. The solutions will not be collected. Work through the course within

More information

University of Alberta

University of Alberta A Brief Introduction to MATLAB University of Alberta M.G. Lipsett 2008 MATLAB is an interactive program for numerical computation and data visualization, used extensively by engineers for analysis of systems.

More information

EE 301 Lab 1 Introduction to MATLAB

EE 301 Lab 1 Introduction to MATLAB EE 301 Lab 1 Introduction to MATLAB 1 Introduction In this lab you will be introduced to MATLAB and its features and functions that are pertinent to EE 301. This lab is written with the assumption that

More information

Laboratory 1 Octave Tutorial

Laboratory 1 Octave Tutorial Signals, Spectra and Signal Processing Laboratory 1 Octave Tutorial 1.1 Introduction The purpose of this lab 1 is to become familiar with the GNU Octave 2 software environment. 1.2 Octave Review All laboratory

More information

How to learn MATLAB? Some predefined variables

How to learn MATLAB? Some predefined variables ECE-S352 Lab 1 MATLAB Tutorial How to learn MATLAB? 1. MATLAB comes with good tutorial and detailed documents. a) Select MATLAB help from the MATLAB Help menu to open the help window. Follow MATLAB s Getting

More information

MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB

MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB MAT 343 Laboratory 1 Matrix and Vector Computations in MATLAB In this laboratory session we will learn how to 1. Create matrices and vectors. 2. Manipulate matrices and create matrices of special types

More information

Getting Started with MATLAB

Getting Started with MATLAB Getting Started with MATLAB Math 315, Fall 2003 Matlab is an interactive system for numerical computations. It is widely used in universities and industry, and has many advantages over languages such as

More information

Matlab Introduction. Scalar Variables and Arithmetic Operators

Matlab Introduction. Scalar Variables and Arithmetic Operators Matlab Introduction Matlab is both a powerful computational environment and a programming language that easily handles matrix and complex arithmetic. It is a large software package that has many advanced

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

Chapter 1 MATLAB Preliminaries

Chapter 1 MATLAB Preliminaries Chapter 1 MATLAB Preliminaries 1.1 INTRODUCTION MATLAB (Matrix Laboratory) is a high-level technical computing environment developed by The Mathworks, Inc. for mathematical, scientific, and engineering

More information

Math Scientific Computing - Matlab Intro and Exercises: Spring 2003

Math Scientific Computing - Matlab Intro and Exercises: Spring 2003 Math 64 - Scientific Computing - Matlab Intro and Exercises: Spring 2003 Professor: L.G. de Pillis Time: TTh :5pm 2:30pm Location: Olin B43 February 3, 2003 Matlab Introduction On the Linux workstations,

More information

AMS 27L LAB #2 Winter 2009

AMS 27L LAB #2 Winter 2009 AMS 27L LAB #2 Winter 2009 Plots and Matrix Algebra in MATLAB Objectives: 1. To practice basic display methods 2. To learn how to program loops 3. To learn how to write m-files 1 Vectors Matlab handles

More information

Course Layout. Go to https://www.license.boun.edu.tr, follow instr. Accessible within campus (only for the first download)

Course Layout. Go to https://www.license.boun.edu.tr, follow instr. Accessible within campus (only for the first download) Course Layout Lectures 1: Variables, Scripts and Operations 2: Visualization and Programming 3: Solving Equations, Fitting 4: Images, Animations, Advanced Methods 5: Optional: Symbolic Math, Simulink Course

More information

A/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System

A/D Converter. Sampling. Figure 1.1: Block Diagram of a DSP System CHAPTER 1 INTRODUCTION Digital signal processing (DSP) technology has expanded at a rapid rate to include such diverse applications as CDs, DVDs, MP3 players, ipods, digital cameras, digital light processing

More information

6.094 Introduction to MATLAB January (IAP) 2009

6.094 Introduction to MATLAB January (IAP) 2009 MIT OpenCourseWare http://ocw.mit.edu 6.094 Introduction to MATLAB January (IAP) 2009 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 6.094 Introduction

More information

CSCI 6906: Fundamentals of Computational Neuroimaging. Thomas P. Trappenberg Dalhousie University

CSCI 6906: Fundamentals of Computational Neuroimaging. Thomas P. Trappenberg Dalhousie University CSCI 6906: Fundamentals of Computational Neuroimaging Thomas P. Trappenberg Dalhousie University 1 Programming with Matlab This chapter is a brief introduction to programming with the Matlab programming

More information

Evolutionary Algorithms. Workgroup 1

Evolutionary Algorithms. Workgroup 1 The workgroup sessions Evolutionary Algorithms Workgroup Workgroup 1 General The workgroups are given by: Hao Wang - h.wang@liacs.leideuniv.nl - Room 152 Furong Ye - f.ye@liacs.leidenuniv.nl Follow the

More information

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras

MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras MATLAB Programming for Numerical Computation Dr. Niket Kaisare Department Of Chemical Engineering Indian Institute of Technology, Madras Module No. #01 Lecture No. #1.1 Introduction to MATLAB programming

More information

MATLAB Tutorial. 1. The MATLAB Windows. 2. The Command Windows. 3. Simple scalar or number operations

MATLAB Tutorial. 1. The MATLAB Windows. 2. The Command Windows. 3. Simple scalar or number operations MATLAB Tutorial The following tutorial has been compiled from several resources including the online Help menu of MATLAB. It contains a list of commands that will be directly helpful for understanding

More information