Introduction to Programming in MATLAB and SCILAB

Size: px
Start display at page:

Download "Introduction to Programming in MATLAB and SCILAB"

Transcription

1 Introduction to Programming in MATLAB and SCILAB By Dr. V. Madhusudanan Pillai Associate Professor Department of Mechanical Engineering National Institute of Technology Calicut Kozhikode , Kerala, India Content MATLAB as a programming language Introduction to Scilab 2 Department of Mechanical Engineering 1

2 What Is MATLAB? The name MATLAB is an abbreviation for MATrix LABoratory MATLAB is a high-performance language for technical computing Used mainly for algorithm development and data visualization Algorithms can be implemented and tested more quickly and easily than with traditional programming languages Provide quickly numerical and graphic answers to matrix and vector related math problems 3 Content of MATLAB system Development Environment MATLAB Mathematical Function Library MATLAB Language Graphics MATLAB Application Program Interface (API) 4 Department of Mechanical Engineering 2

3 Common Uses Developing Algorithms Data Analysis Data Visualization Numeric Computation 5 General Features of MATLAB The operations are designed to be as natural as possible Basic data element is an array that does not require dimensioning Consists a family of add-on application-specific solutions called toolboxes Toolboxes are comprehensive collections of MATLAB functions (M-files) to learn and apply specialized technology like signal processing, control systems, neural networks, fuzzy logic, wavelets, simulation, and many others. 6 Department of Mechanical Engineering 3

4 MATLAB Basics Starting MATLAB double-click the MATLAB icon, or in a terminal window, type matlab, and return In the Command Windowthe MATLAB prompt is >> The Desktop menu undocking command window tiling other windows (command history, workspace, current directory) 7 MATLAB Basics MATLAB as a calculator Type expressions at the >>, and press return Result is computed, and displayed as ans Use numbers, +, *, /, -, (), sin, cos, exp, abs, round, Precedence rules in expressions Left-to-right within a precedence group Precedence groups are (highest first) Highest precedence is parenthesis, then Power (^) Multiplication and division (*, /) Addition and subtraction (+, -) 8 Department of Mechanical Engineering 4

5 Examples of expressions Legal expressions >> 4 >> 5 + pi >> 6*sqrt(2)^4-12 >> 6 * sqrt( 2.0) ^ 4-12 >> sin(pi/3)^2 + cos(pi/3)^2 >> 1.0/0.0 # a number divided by zero is infinity (inf) >> -4/inf # This is equal to zero >> 0/0 # This is equal to infinity Illegal expressions >> 2 4 >> (2,4) 9 Variables Use name to assign result of an expression to a variable Variables do not need to be declared before assignment A single equal sign (=) is the assignment operator, LHS = RHS A semicolon at the end of the RHSexpression suppresses the display, but the assignment still takes place. Examples of Variables and Assignment Legal >> A = sqrt(13) >> B = exp(2); >> A = 2*B >> A = A + 1 >> C = tan(pi/4) Illegal (all for different reasons) >> D = sqrt(e) + 1; # if E is defined before then valid >> 3 = E >> 3*A = 14 >> F = Department of Mechanical Engineering 5

6 Creation of Vectors Colon notation to create a vector where x = s:d:f or x = (s:d:f) or x = [s:d:f] s = starting value, d = increment or decrement f = end or final value when d is omitted MatLab assumes d = 1. length(x) gives the number of terms in the vector. e.g. x = 0.2:0.1:1 11 Creation of Vectors and Operations Generation of n equally spaced values. x = linspace(s,f,n) The increment or decrement is calculated by MATLAB Increment or decrement, d = (f-s)/(n-1) e.g. x = linspace(-2,10,7) Vector can also be created with x = [-2,1,3,5,7,9,10]; or x = [-2,1:2:9,10]; z = x-1 results in z = z(1,3) = z(1,3)/2 results in z = z(3:5) = z(3:5)*3-1 results in z = y = z(3:5) results in y = Department of Mechanical Engineering 6

7 Array Operations y = [ ]; [ynew,indx] = sort(y) results in ynew= indx= Indxx= find(y<=9) and s = y(indxx) results in Indxx= and s= [ymax,indxmax]=max(y) [ymin,indxmin]=min(y) 13 Creation of Matrices A = [2 3 4;5 4 7; 7 6 9; 2 6 8]; or A = [ ]; [m,n] = size(a) results in m = 4 and n = 3 sl= length(a) results in S = 4 Special matrices x = ones(r,c) # creates ones matrix where, r and c are dimensions of matrix L = zeros(r,c) # creates the zeros matrix diag(a) # creates the (n x n) diagonal matrix whose elements are given by vector a of length n 14 Department of Mechanical Engineering 7

8 Manipulation of Matrices A=[ ]; A(3,4)=4 A(:,2) # Means all the rows of column 2 A(2,:) # Means all the columns of rows 2 A(1:3,3:5) results in [7 9 11;6 8 13;3 4 16]; x=a # Creates the transpose of A. 15 Manipulation of Matrices Addition/Substraction C = A+B and C = A-B # A & B have same dimensions Column augmentation C = [A,B] # A & B have same number of rows Row augmentation C = [A;B] # A & B have same number of columns Removing the row or column C(3,: ) = [] # 3 rd of C is removed Multiplication C=A*B # for multiplication matrix dimensions should match. i.e (m x k) (k x n) (m x n) 16 Department of Mechanical Engineering 8

9 Manipulation of Matrices Dot operations are used to do mathematical operations on element by element. C=A.*B C=A./B =A divided by B element by element C=A.\B =B divided by A element by element C=A.^B Also if x=1:8 and y=2.^x results in y= Functions Provides a large number of standard elementary mathematical functions, including abs, sqrt, exp, and sin Also provides many more advanced mathematical functions, including Bessel and gamma functions Most of these functions accept complex arguments For a list of the elementary mathematical functions, type help elfun For a list of more advanced mathematical and matrix functions, type help specfun help elmat 18 Department of Mechanical Engineering 9

10 The workspace It consists of the set of variables built up during a MATLABsession and stored in memory All variables that you create are accessible from the prompt >> Variables are accessed using their name as a reference Builtin Matlab commands >> who #list current variable >> whos #more information about current variable are used to see what is in the workspace. You can clear (ie, erase) variables with the clear command >> clear A # clears the variable A from the workspace 19 Saving the workspace When you quit MATLAB, the variables in the workspace are erased from memory. If you need them for later use, you must save them. You can save all variables (or just some of them) to a file using the command save >> save # saves all of the variables in the workspace into a file called matlab.mat(it is saved in the current directory).mat file is in binary format >> save Andy saves all of the variables in the workspace into a file called Andy.mat >> save Important A B C D* saves the variables A, B, Cand any variable beginning with Din the workspace into a file called Important.mat 20 Department of Mechanical Engineering 10

11 Loading from a.matfile loadis the opposite of save. It reads a.matfile, putting all variables contained in the.matfile into the workspace >> load # loads all of the variables from the file matlab.mat >> load Andy loads all of the variables from the file andy.mat 21 Script files Programming in Matlab A MATLAB script file (Called an M-file) is a text file that contains one or more MATLAB commands and, optionally, comments. The file is saved with the extension".m". When the filename (without the extension) is issued as a command in MATLAB, the file is opened, read, and the commands are executed as if input from the keyboard. TheresultissimilartorunningaprograminC. 22 Department of Mechanical Engineering 11

12 Script files factscript.m % FACTSCRIPT Compute n-factorial, n!=1*2*...*n y = prod(1:n); Executed by typing its name >> factscript Operates on variables in global workspace Variable n must exist in workspace Variable y is created (or over-written) Use comment lines (starting with %) to document file 23 Function files Functions describe subprograms Take inputs, generate outputs Have local variables (invisible in global workspace) Structure of Function files [output_arguments]= function_name(input_arguments) % Comment lines <function body> factfun.m function [z]=factfun(n) % FACTFUN Compute factorial z = prod(1:n); Execution of function file >> y = factfun(10); 24 Department of Mechanical Engineering 12

13 Script or function: when use what? Functions Take inputs, generate outputs, have internal variables Solve general problem for arbitrary parameters Scripts Operate on global workspace Document work, design experiment or test Solve a very specific problem once 25 Logical expressions Relational operators (compare arrays of same sizes) == (equal to) ~= (not equal) < (less than) <= (less than or equal to) > (greater than) >= (greater than or equal to) Logical operators (combinations of relational operators) & (and) if (x>=0) & (x<=10) (or) ~ (not) Logical functions xor # Logical EXCLUSIVE OR isempty # True for empty array any # True if any element of a vector is nonzero all # True if all elements of a vector are nonzero disp( x is in range 0,10 ) else end disp( x is out of range ) 26 Department of Mechanical Engineering 13

14 Flow control - selection The if-elseif-else-end construction if <logical expression> <commands> elseif <logical expression> <commands> else <commands> end if height>170 disp( tall ) elseif height<150 disp( small ) else disp( average ) end 27 Flow control - repetition Repeats a code segment a fixednumber of times for index = <vector> end <statements> The <statements> are executed repeatedly. At each iteration, the variable index is assigned a new value from <vector>. for k=1:12 kfac=prod(1:k); disp(['factorial of ',num2str(k),' is ',num2str(kfac)]); end 28 Department of Mechanical Engineering 14

15 Flow control conditional repetition while-loops while <logical expression> end <statements> <statements> are executed repeatedly as long as the <logical expression> evaluates to true 29 Scilab: The Free Platform for Numerical Computation Department of Mechanical Engineering 15

16 What is Scilab? Scilabis an open source scientific software package which can be used as a programming language. It can be used for numerical computations; providing a powerful open computing environment for engineering and scientific applications. It is a collection of collection of numerical algorithms covering many aspects of scientific computing problems. Since 1994 it has been distributed freely along with the source code via the Internet. It is currently used in educational and industrial environments around the world. 31 History Scilabwas created in 1990 by researchers from INRIA (French National Institute for Research in Computer Science and Control) and École nationaledes pontset chaussées(enpc) ScilabConsortium was formed in May 2003 to broaden contributions and promote Scilabas worldwide reference software in academia and industry In July 2008, the ScilabConsortium joined the Digiteo Foundation 32 Department of Mechanical Engineering 16

17 History Contd : Matlab written in Fortran and public domain 1984: creation of The MathWorks company Since 1990: Matlab is the standard and a monopoly Around 1980: Blaise then Basile built upon Matlab 1990: creation of Scilab at INRIA 1994: Scilab freely distributed on the net Courtesy: Claude Gomez (Scilab Consortium / Digiteo Director )and Bruno Jofret (Scilab Consortium / Digiteo Project Engineer), A ppt presentation on Scilab: The Platform for Numerical Computation 33 Scilab More than 1,700 functions Computation library Matrix computation, sparse matrices Polynomials and rational functions Interpolation, approximation Simulation: systems of differential equations Classic and robust control, LMI optimization Differentiable and non-differentiable optimization Signal processing Statistics Graphs and networks Scicos: block diagram simulator for dynamical systems Graphics, GUI, GUI builder 2-D and 3-D graphics, animation Ui controls, interface with TCL/TK User interface Language, interpreter Editor On line help Scilab Consortium Interface Services Toolboxes SIVP: image and video processing MIXMOD: cluster and discriminant Analysis OpenFEM: finite elements Wavelab: wavelet analysis OPC: data acquisition Grocer: econometric Modnum: communication systems in Scicos RTAI: real time Scicos CGAL: computational geometry GRID with ProActive GREENSCILAB: plant growth simulation Contributors Other Scientific Software Courtesy: Claude Gomez (Scilab Consortium / Digiteo Director )and Bruno Jofret (Scilab Consortium / Digiteo Project Engineer), A ppt presentation on Scilab: The Platform for Numerical Computation 34 Department of Mechanical Engineering 17

18 Websites Scilabbinaries can be downloaded directly from the Scilabhomepage for the platforms (Windows, Linux or Mac) Use the help provided on Scilabweb site A list of commercial books, free books, online tutorials and articles is presented on the Scilab homepage 35 Scilab in India A project on Scilabis currently going on in IITB This project is funded by MHRDas part of the National Mission on Education through ICT. Kannur, Mumbai and Puneuniversities have scilab as part of their syllabus 36 Department of Mechanical Engineering 18

19 Exercise Develop a program to sample a random value based on the given empirical distribution. For example, if the distribution is as follows Variable (d) Frequency(df) When we sample, the variable can have values as 1, 2, 7. The program has to give randomlyonevalue.wewanta generalised program so that for any empirical distribution it will give a random value. This value has to be used subsequently in some other program. 37 Approach Workout the problem yourself If the problem is very large work out a sample part of the problem and ensure that every distinct aspect are worked out Divide the problem into different distinct part Further consider dividing the distinct part again and again Write the program for each small part Put together some distinct parts to form function Put together these functions to form the final script file 38 Department of Mechanical Engineering 19

20 Working out Random Variable value (d) Frequency (df) Relative frequency (rf) Cumulative relative frequency (cf) Random number Total 50 Randomly generated variable value 39 Matlab features required Assignment Length Sum Rand Break Flow control for loop If Elseif else end Relational operator Logical operator Break Terminate the execution of WHILE or FOR loop Rand A function to generate uniformly distributed random number 40 Department of Mechanical Engineering 20

21 Breaking up the problem Step 0: The value of random variable and the frequency are stored in variables namely, d and df Step 1: Calculate the relative frequency (rf) Step 2: Calculate the cumulative relative frequency (cf) Step 3: Generate a random number 41 Breaking up the problem and program development contd Step 4: (i) Check where this random number is falling (ii) Once identified the upper and lower value in which it is falling, identify the random variable value corresponding to the upper cumulative value (iii)assign this value to a variable name (rd) which represent the randomly generated value from the empirical distribution 42 Department of Mechanical Engineering 21

22 Program development Step 0: Identification of name for input variables which has done at break up itself Step 1: rf = df/sum(df) Step 2: See the logic of how we have developed the cumulative frequency Logic: First value as such is appearing in the cumulative frequency and to get other values we repeatedly adding the relative frequency with the previous sum The first value also can be considered as a sum 43 Program development step 2 Let a variable be a and a =0 Add to a the first element of rf Now, a = rf(1) store this a to cf(1) Again add to this new a the second element of rf Now, a= rf(1) + rf(2) store this to cf(2) Repeat this step until the last element is added to a and stored 44 Department of Mechanical Engineering 22

23 Program development step 2 contd From the above logic we know that we want know the number of times to add to get the cumulative frequency The number of times is equal to the number of element of rfor dfor d That is, this is the length of the input vector Corresponding statement in MATLAB is ld = length(df) 45 Program development step 2 contd Repeated addition can be carried with FOR loop a = 0; For i= 1:ld a = a + rf(i); cf(i) = a; end Step 3: rn= rand() 46 Department of Mechanical Engineering 23

24 Program development step 4 Here, also a FOR loop is required as the rn generated may fall in any interval of the cf After the identification of range in which it is falling and assignment of upper value to rd, we can break from the loop Since we are checking the range in which it is falling, we have to use IF ELSE statement 47 Program development step 4 For j = 1: ld if j = =1 if rn<= cf(j) rd = d(j); break end elseifrn> cf(j-1) & rn<= cf(j) rd = d(j); break end end 48 Department of Mechanical Engineering 24

25 Develop the full program Above code can be used in both MATLABand Scilab Major difference in these systems Any comment line start with % in MATLAB and with // in Scilab For function file in MATLABthere is no endfunction statement at the end 49 References For Matlab 1. Rudra Pratap, Getting Started with MATLAB 7, First indian edition 2006, Oxford University Press Inc 2. E.B.Magrab, S.Azarm, B.Balachandran, J.H.Duncan, K.E.Herold and G.C.Walsh. An Engineer s Guide to MATLAB, second edition 2005, Pearson Prentice Hall For Scilab 50 Department of Mechanical Engineering 25

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

Computer Programming in MATLAB

Computer Programming in MATLAB Computer Programming in MATLAB Prof. Dr. İrfan KAYMAZ Atatürk University Engineering Faculty Department of Mechanical Engineering What is a computer??? Computer is a device that computes, especially a

More information

MATLAB: The Basics. Dmitry Adamskiy 9 November 2011

MATLAB: The Basics. Dmitry Adamskiy 9 November 2011 MATLAB: The Basics Dmitry Adamskiy adamskiy@cs.rhul.ac.uk 9 November 2011 1 Starting Up MATLAB Windows users: Start up MATLAB by double clicking on the MATLAB icon. Unix/Linux users: Start up by typing

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

Introduction to Matlab EL1150, Lecture 2 Matlab Programming Introduction to Matlab Based on lectures by F. Gustafsson, Linköping University http://www.kth.se/ees/utbildning/kurshemsidor/control/el1150 1 Today s Lecture Matlab

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

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

Lecture 3. Introduction to Matlab

Lecture 3. Introduction to Matlab Lecture 3 Introduction to Matlab Programming Today s Lecture Matlab programming Programming environment and search path M-file scripts and functions Flow control statements Function functions Programming

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

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

AN INTRODUCTION TO MATLAB

AN INTRODUCTION TO MATLAB AN INTRODUCTION TO MATLAB 1 Introduction MATLAB is a powerful mathematical tool used for a number of engineering applications such as communication engineering, digital signal processing, control engineering,

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

A Brief Introduction to MATLAB

A Brief Introduction to MATLAB A Brief Introduction to MATLAB MATLAB (Matrix Laboratory) is an interactive software system for numerical computations and graphics. As the name suggests, MATLAB was first designed for matrix computations:

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

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 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

Scilab Programming. The open source platform for numerical computation. Satish Annigeri Ph.D.

Scilab Programming. The open source platform for numerical computation. Satish Annigeri Ph.D. Scilab Programming The open source platform for numerical computation Satish Annigeri Ph.D. Professor, Civil Engineering Department B.V.B. College of Engineering & Technology Hubli 580 031 satish@bvb.edu

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

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

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

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix.

MATLAB Tutorial. Mohammad Motamed 1. August 28, generates a 3 3 matrix. MATLAB Tutorial 1 1 Department of Mathematics and Statistics, The University of New Mexico, Albuquerque, NM 87131 August 28, 2016 Contents: 1. Scalars, Vectors, Matrices... 1 2. Built-in variables, functions,

More information

Some elements for Matlab programming

Some elements for Matlab programming Some elements for Matlab programming Nathalie Thomas 2018 2019 Matlab, which stands for the abbreviation of MATrix LABoratory, is one of the most popular language for scientic computation. The classical

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

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

This is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms:

This is a basic tutorial for the MATLAB program which is a high-performance language for technical computing for platforms: Appendix A Basic MATLAB Tutorial Extracted from: http://www1.gantep.edu.tr/ bingul/ep375 http://www.mathworks.com/products/matlab A.1 Introduction This is a basic tutorial for the MATLAB program which

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 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 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

Computational Photonics, Summer Term 2014, Abbe School of Photonics, FSU Jena, Prof. Thomas Pertsch

Computational Photonics, Summer Term 2014, Abbe School of Photonics, FSU Jena, Prof. Thomas Pertsch Computational Photonics Seminar 01, 14 April 2014 What is MATLAB? tool for numerical computing integrated environment for computation, visualization and programming at the same time higher level programming

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

How to Use MATLAB. What is MATLAB. Getting Started. Online Help. General Purpose Commands

How to Use MATLAB. What is MATLAB. Getting Started. Online Help. General Purpose Commands How to Use MATLAB What is MATLAB MATLAB is an interactive package for numerical analysis, matrix computation, control system design and linear system analysis and design. On the server bass, MATLAB version

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

MATLAB TUTORIAL WORKSHEET

MATLAB TUTORIAL WORKSHEET MATLAB TUTORIAL WORKSHEET What is MATLAB? Software package used for computation High-level programming language with easy to use interactive environment Access MATLAB at Tufts here: https://it.tufts.edu/sw-matlabstudent

More information

Statistical Pattern Recognition

Statistical Pattern Recognition Statistical Pattern Recognition An Introduction to MATLAB Hamid R. Rabiee Jafar Muhammadi, Mohammad R. Zolfaghari Spring 2012 http://ce.sharif.edu/courses/90-91/2/ce725-1/ Agenda MATrix LABoratory Environment

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

Lecture 1: What is MATLAB?

Lecture 1: What is MATLAB? Lecture 1: What is MATLAB? Dr. Mohammed Hawa Electrical Engineering Department University of Jordan EE201: Computer Applications. See Textbook Chapter 1. MATLAB MATLAB (MATrix LABoratory) is a numerical

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

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

Introduction to Matlab. By: Hossein Hamooni Fall 2014

Introduction to Matlab. By: Hossein Hamooni Fall 2014 Introduction to Matlab By: Hossein Hamooni Fall 2014 Why Matlab? Data analytics task Large data processing Multi-platform, Multi Format data importing Graphing Modeling Lots of built-in functions for rapid

More information

An Introduction to MATLAB See Chapter 1 of Gilat

An Introduction to MATLAB See Chapter 1 of Gilat 1 An Introduction to MATLAB See Chapter 1 of Gilat Kipp Martin University of Chicago Booth School of Business January 25, 2012 Outline The MATLAB IDE MATLAB is an acronym for Matrix Laboratory. It was

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos, sin,

More information

AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA

AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA AMATH 352: MATLAB Tutorial written by Peter Blossey Department of Applied Mathematics University of Washington Seattle, WA MATLAB (short for MATrix LABoratory) is a very useful piece of software for numerical

More information

MatLab Just a beginning

MatLab Just a beginning MatLab Just a beginning P.Kanungo Dept. of E & TC, C.V. Raman College of Engineering, Bhubaneswar Introduction MATLAB is a high-performance language for technical computing. MATLAB is an acronym for MATrix

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 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

MATLAB Second Seminar

MATLAB Second Seminar MATLAB Second Seminar Previous lesson Last lesson We learnt how to: Interact with MATLAB in the MATLAB command window by typing commands at the command prompt. Define and use variables. Plot graphs It

More information

Matlab (Matrix laboratory) is an interactive software system for numerical computations and graphics.

Matlab (Matrix laboratory) is an interactive software system for numerical computations and graphics. Matlab (Matrix laboratory) is an interactive software system for numerical computations and graphics. Starting MATLAB - On a PC, double click the MATLAB icon - On a LINUX/UNIX machine, enter the command:

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB The Desktop When you start MATLAB, the desktop appears, containing tools (graphical user interfaces) for managing files, variables, and applications associated with MATLAB. The following

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

Math 375 Natalia Vladimirova (many ideas, examples, and excersises are borrowed from Profs. Monika Nitsche, Richard Allen, and Stephen Lau)

Math 375 Natalia Vladimirova (many ideas, examples, and excersises are borrowed from Profs. Monika Nitsche, Richard Allen, and Stephen Lau) Natalia Vladimirova (many ideas, examples, and excersises are borrowed from Profs. Monika Nitsche, Richard Allen, and Stephen Lau) January 24, 2010 Starting Under windows Click on the Start menu button

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

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning.

MATLAB = MATrix LABoratory. Interactive system. Basic data element is an array that does not require dimensioning. Introduction MATLAB = MATrix LABoratory Interactive system. Basic data element is an array that does not require dimensioning. Efficient computation of matrix and vector formulations (in terms of writing

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

Why use MATLAB? Mathematcal computations. Used a lot for problem solving. Statistical Analysis (e.g., mean, min) Visualisation (1D-3D)

Why use MATLAB? Mathematcal computations. Used a lot for problem solving. Statistical Analysis (e.g., mean, min) Visualisation (1D-3D) MATLAB(motivation) Why use MATLAB? Mathematcal computations Used a lot for problem solving Statistical Analysis (e.g., mean, min) Visualisation (1D-3D) Signal processing (Fourier transform, etc.) Image

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Kristian Sandberg Department of Applied Mathematics University of Colorado Goal The goal with this worksheet is to give a brief introduction to the mathematical software Matlab.

More information

Introduction to Engineering gii

Introduction to Engineering gii 25.108 Introduction to Engineering gii Dr. Jay Weitzen Lecture Notes I: Introduction to Matlab from Gilat Book MATLAB - Lecture # 1 Starting with MATLAB / Chapter 1 Topics Covered: 1. Introduction. 2.

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

Scilab/Scicos: Modeling and Simulation of Hybrid Systems

Scilab/Scicos: Modeling and Simulation of Hybrid Systems Scilab/Scicos: Modeling and Simulation of Hybrid Systems G. Sivakumar Indian Institute of Technology, Bombay Mumbai 400076, India siva@iitb.ac.in Outline Free/Open Source S/w (quick motivation) Scilab/Scicos

More information

McTutorial: A MATLAB Tutorial

McTutorial: A MATLAB Tutorial McGill University School of Computer Science Sable Research Group McTutorial: A MATLAB Tutorial Lei Lopez Last updated: August 2014 w w w. s a b l e. m c g i l l. c a Contents 1 MATLAB BASICS 3 1.1 MATLAB

More information

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c.

MATLAB BASICS. < Any system: Enter quit at Matlab prompt < PC/Windows: Close command window < To interrupt execution: Enter Ctrl-c. MATLAB BASICS Starting Matlab < PC: Desktop icon or Start menu item < UNIX: Enter matlab at operating system prompt < Others: Might need to execute from a menu somewhere Entering Matlab commands < Matlab

More information

CME 192: Introduction to Matlab

CME 192: Introduction to Matlab CME 192: Introduction to Matlab Matlab Basics Brett Naul January 15, 2015 Recap Using the command window interactively Variables: Assignment, Identifier rules, Workspace, command who and whos Setting the

More information

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial

STAT/MATH 395 A - PROBABILITY II UW Winter Quarter Matlab Tutorial STAT/MATH 395 A - PROBABILITY II UW Winter Quarter 2016 Néhémy Lim Matlab Tutorial 1 Introduction Matlab (standing for matrix laboratory) is a high-level programming language and interactive environment

More information

MATLAB BASICS. Macro II. February 25, T.A.: Lucila Berniell. Macro II (PhD - uc3m) MatLab Basics 02/25/ / 15

MATLAB BASICS. Macro II. February 25, T.A.: Lucila Berniell. Macro II (PhD - uc3m) MatLab Basics 02/25/ / 15 MATLAB BASICS Macro II T.A.: Lucila Berniell February 25, 2010 Macro II (PhD - uc3m) MatLab Basics 02/25/2010 1 / 15 MATLAB windows Macro II (PhD - uc3m) MatLab Basics 02/25/2010 2 / 15 Numbers, vectors

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

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

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline (Cont d) MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB built-in functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos,

More information

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu

ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu ECON 502 INTRODUCTION TO MATLAB Nov 9, 2007 TA: Murat Koyuncu 0. What is MATLAB? 1 MATLAB stands for matrix laboratory and is one of the most popular software for numerical computation. MATLAB s basic

More information

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 1 INTRODUCING SOME MATHEMATICS SOFTWARE (Matlab, Maple and Mathematica) This topic provides

More information

MATLAB. Miran H. S. Mohammed. Lecture 1

MATLAB. Miran H. S. Mohammed. Lecture 1 MATLAB Miran H. S. Mohammed 1 Lecture 1 OUTLINES Introduction Why using MATLAB Installing MATLAB Activate your installation Getting started Some useful command Using MATLAB as a calculator 2 INTRODUCTION

More information

Introduction to Digital Image Processing

Introduction to Digital Image Processing Introduction to Digital Image Processing Ranga Rodrigo September 14, 2010 Outline Contents 1 Introduction 1 2 Digital Images 4 3 Matlab or Octave Tutorial 8 4 Programming in Matlab 18 4.1 Flow Control...................................

More information

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to.

Starting Matlab. MATLAB Laboratory 09/09/10 Lecture. Command Window. Drives/Directories. Go to. Starting Matlab Go to MATLAB Laboratory 09/09/10 Lecture Lisa A. Oberbroeckling Loyola University Maryland loberbroeckling@loyola.edu http://ctx.loyola.edu and login with your Loyola name and password...

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

An Introduction to MATLAB and the Control Systems toolbox Aravind Parchuri, Darren Hon and Albert Honein

An Introduction to MATLAB and the Control Systems toolbox Aravind Parchuri, Darren Hon and Albert Honein E205 Introduction to Control Design Techniques An Introduction to MATLAB and the Control Systems toolbox Aravind Parchuri, Darren Hon and Albert Honein MATLAB is essentially a programming interface that

More information

ECE Lesson Plan - Class 1 Fall, 2001

ECE Lesson Plan - Class 1 Fall, 2001 ECE 201 - Lesson Plan - Class 1 Fall, 2001 Software Development Philosophy Matrix-based numeric computation - MATrix LABoratory High-level programming language - Programming data type specification not

More information

Introduction to Scilab

Introduction to Scilab Introduction to Scilab Kannan M. Moudgalya IIT Bombay www.moudgalya.org kannan@iitb.ac.in Scilab Workshop Bhaskaracharya Pratishtana 4 July 2009 Kannan Moudgalya Introduction to Scilab 1/52 Outline 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

Outline. User-based knn Algorithm Basics of Matlab Control Structures Scripts and Functions Help

Outline. User-based knn Algorithm Basics of Matlab Control Structures Scripts and Functions Help Outline User-based knn Algorithm Basics of Matlab Control Structures Scripts and Functions Help User-based knn Algorithm Three main steps Weight all users with respect to similarity with the active user.

More information

MAT 275 Laboratory 1 Introduction to MATLAB

MAT 275 Laboratory 1 Introduction to MATLAB MATLAB sessions: Laboratory 1 1 MAT 275 Laboratory 1 Introduction to MATLAB MATLAB is a computer software commonly used in both education and industry to solve a wide range of problems. This Laboratory

More information

Stokes Modelling Workshop

Stokes Modelling Workshop Stokes Modelling Workshop 14/06/2016 Introduction to Matlab www.maths.nuigalway.ie/modellingworkshop16/files 14/06/2016 Stokes Modelling Workshop Introduction to Matlab 1 / 16 Matlab As part of this crash

More information

Matlab Tutorial: Basics

Matlab Tutorial: Basics Matlab Tutorial: Basics Topics: opening matlab m-files general syntax plotting function files loops GETTING HELP Matlab is a program which allows you to manipulate, analyze and visualize data. MATLAB allows

More information

1. Register an account on: using your Oxford address

1. Register an account on:   using your Oxford  address 1P10a MATLAB 1.1 Introduction MATLAB stands for Matrix Laboratories. It is a tool that provides a graphical interface for numerical and symbolic computation along with a number of data analysis, simulation

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

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

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

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

Outline. CSE 1570 Interacting with MATLAB. Outline. Starting MATLAB. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An.

Outline. CSE 1570 Interacting with MATLAB. Outline. Starting MATLAB. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An. CSE 10 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

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

Matlab Tutorial and Exercises for COMP61021

Matlab Tutorial and Exercises for COMP61021 Matlab Tutorial and Exercises for COMP61021 1 Introduction This is a brief Matlab tutorial for students who have not used Matlab in their programming. Matlab programming is essential in COMP61021 as a

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 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

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

Introduction to GNU-Octave

Introduction to GNU-Octave Introduction to GNU-Octave Dr. K.R. Chowdhary, Professor & Campus Director, JIETCOE JIET College of Engineering Email: kr.chowdhary@jietjodhpur.ac.in Web-Page: http://www.krchowdhary.com July 11, 2016

More information

THE STUDY OF SLIDER CRANK MECHANISM USING MATLAB AND SCILAB

THE STUDY OF SLIDER CRANK MECHANISM USING MATLAB AND SCILAB THE STUDY OF SLIDER CRANK MECHANISM USING MATLAB AND SCILAB 1 Ioan Sorin Șorlei, 2 Adriana Elena Cernat, 3 Ciprian Ion Rizescu, 4 Dana Rizescu 1,2,3,4 University of POLITEHNNICA Bucharest/ Department of

More information

Eng Marine Production Management. Introduction to Matlab

Eng Marine Production Management. Introduction to Matlab Eng. 4061 Marine Production Management Introduction to Matlab What is Matlab? Matlab is a commercial "Matrix Laboratory" package which operates as an interactive programming environment. Matlab is available

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

The MATLAB system The MATLAB system consists of five main parts:

The MATLAB system The MATLAB system consists of five main parts: Introduction to MATLAB What is MATLAB? The name MATLAB stands for matrix laboratory. MATLAB is a high performance language for technical computing. It integrates computation, visualization, and programming

More information

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An.

Outline. CSE 1570 Interacting with MATLAB. Starting MATLAB. Outline. MATLAB Windows. MATLAB Desktop Window. Instructor: Aijun An. CSE 170 Interacting with MATLAB Instructor: Aijun An Department of Computer Science and Engineering York University aan@cse.yorku.ca Outline Starting MATLAB MATLAB Windows Using the Command Window Some

More information

Chapter 2. MATLAB Basis

Chapter 2. MATLAB Basis Chapter MATLAB Basis Learning Objectives:. Write simple program modules to implement single numerical methods and algorithms. Use variables, operators, and control structures to implement simple sequential

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