MATLAB ……………….matrix laboratory. Bhushan D Patil PhD Research Scholar Department of Electrical Engineering Indian Institute of Technology, Bombay Powai,

Slides:



Advertisements
Similar presentations
StatLab Workshop Yale University Maximiliano Appendino, Economics October 18 th, 2013.
Advertisements

Introduction to MATLAB The language of Technical Computing.
Introduction to Matlab
Matlab Programming Huajun Wang Department of Earth Sciences, Zhejiang University Jan 25,2012.
Introduction to Matlab Workshop Matthew Johnson, Economics October 17, /13/20151.
Maths for Computer Graphics
Getting started with Matlab Numerical Methods Appendix B help/techdoc/learn_matlab/learn_matlab.html.
Introduction to Matlab Οικονομίδης Δημήτρης
MatlABBA. The Colon Operator (1) This is one MatLab’s most important operators 1:10 means the vector – :-7:50 –
Digital Image Processing Lecture3: Introduction to MATLAB.
259 Lecture 15 Introduction to MATLAB. 2 What is MATLAB?  MATLAB, which stands for “MATrix LABoratory” is a high- performance language for technical.
MATLAB Basics With a brief review of linear algebra by Lanyi Xu modified by D.G.E. Robertson.
1 Statistical Computing in MATLAB AMS 597 Ling Leng.
Martin Ellison University of Warwick and CEPR Bank of England, December 2005 Introduction to MATLAB.
Nonparametric Econometrics1 Intro to Matlab for Data Analysis and Statistical Modeling.
Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,
Introduction to MATLAB CBE 502 Mathematical Methods of Engineering Analysis.
A Brief Introduction to Matlab Laila Guessous Dept. of Mechanical Engineering Oakland University.
Eng Ship Structures 1 Introduction to Matlab.
INTRODUCTION TO MATLAB LAB# 01
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
Matrix Computations ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
Lecture 28: Mathematical Insight and Engineering.
Basics of MATLAB By DR. Wafaa Shabana
Introduction to MATLAB
Matlab The language of Technical computing Mr. D. Suresh Assistant Professor, Dept. of CSE, PSNA CET, Dindigul.
Matlab 14.html Cost: $100 Available in labs on Windows and Unix machines.
Introduction MATLAB stands for MATrix LABoratory.  Basics  Matrix Manipulations  MATLAB Programming  Graphics  Image types  Image Processing  Useful.
Introduction to MATLAB adapted from Dr. Rolf Lakaemper.
ME6104: CAD. Module 4. ME6104: CAD. Module 4. Systems Realization Laboratory Module 4 Matlab ME 6104 – Fundamentals of Computer-Aided Design.
OUTLINE Overview Numbers, variables and similar in Matlab
Master in Optical Fiber Communications and Photonic Technologies Foundations of Digital Transmission - Fall quarter Introduction to Matlab.
Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz SUNY-New Paltz “Lecture 2”
MATLAB Tutorial EE313 Signals and Systems Created: Thursday Jan 25, 2007 Rayyan Jaber Modified by: Jeff Andrews.
Matrix Computations ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
CIS 601 Fall 2003 Introduction to MATLAB Longin Jan Latecki Based on the lectures of Rolf Lakaemper and David Young.
1 Lecture 3 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
Program design and algorithm development We will consider the design of your own toolbox to be included among the toolboxes already available with your.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
CIS 595 MATLAB First Impressions. MATLAB This introduction will give Some basic ideas Main advantages and drawbacks compared to other languages.
Introduction to Matlab Engr. Mian Shahzad Iqbal LAB NO.2
CS100A, Fall 1998, Lecture 201 CS100A, Fall 1998 Lecture 20, Tuesday Nov 10 More Matlab Concepts: plotting (cont.) 2-D arrays Control structures: while,
Matlab Tutorial (material available at 1 Dr. Jim Martin Associate Professor School of Computing.
EEE 242 Computer Tools for Electrical Engineering
Prof. N. P. Jadhav Presented by. Overview of MATLAB environment MATLAB is an interactive, matrix-based system for scientific and engineering numeric computation.
Introduction to MATLAB
Signals in Matlab Matlab as a name stands for Matrix Laboratory.
Introduction to Matlab
Introduction to Mat lab
Computer programming Dr. Ivan A. Hashim.
Statistical Computing in MATLAB
Ch3 Graphics Overview of Plotting Editing Plots
Introduction to MATLAB
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Introduction to Matlab
Matlab Workshop 9/22/2018.
StatLab Matlab Workshop
Digital Image Processing using MATLAB
Part I – Matlab Basics.
Use of Mathematics using Technology (Maltlab)
StatLab Workshop: Intro to Matlab for Data Analysis and Statistical Modeling 11/29/2018.
Introduction to MATLAB [Vectors and Matrices] Lab 2
Digital Image Processing
CSCI N317 Computation for Scientific Applications Unit 1 – 5 MATLAB
Matlab Basic Dr. Imtiaz Hussain
Announcements P3 due today
MATLAB stands for MATrix LABoratory.
Laboratory in Oceanography: Data and Methods
Presentation transcript:

MATLAB ……………….matrix laboratory. Bhushan D Patil PhD Research Scholar Department of Electrical Engineering Indian Institute of Technology, Bombay Powai, Mumbai

What is MATLAB? MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to- use environment where problems and solutions are expressed in familiar mathematical notation. Typical uses include Math and computation Algorithm development Data acquisition Modeling, simulation, and prototyping Data analysis, exploration, and visualization Scientific and engineering graphics Application development, including graphical user interface building

Starting and Quitting MATLAB  Starting MATLAB  Quitting MATLAB  MATLAB Desktop

Editor/Debugger

Array Editor

Matrices and Arrays A = [ ; ; ; ] A =  sum, transpose, and diag sum(A) ans = A‘ ans = diag(A) ans =

Generating Basic Matrices zeros All zeros Z = zeros(2,4) Z = 0 0 ones All ones F = 5*ones(3,3) F = rand Uniformly distributed random elements N = fix(10*rand(1,10)) N = randn Normally distributed random elements R = randn(4,4) R =

Concatenation B = [A A+32; A+48 A+16] B = Deleting Rows and Columns X = A; X(:,2) = [] X = inv(A) eig(A)

Subscripts A(1,4) + A(2,4) + A(3,4) + A(4,4) The Colon Operator 1:10 ans :-7:50 ans :pi/4:pi ans

The list of operators includes + Addition - Subtraction.* Element-by-element multiplication./ Element-by-element division.\ Element-by-element left division.^ Element-by-element power

Graphics

Figure Tools

Preparing Graphs x = -10:.005:40; y = [1.5*cos(x)+4*exp(-.01*x).*cos(x)+exp(.07*x).*sin(3*x)]; plot(x,y)

Multiple Data Sets in One Graph x = 0:pi/100:2*pi; y = sin(x); y2 = sin(x-.25); y3 = sin(x-.5); plot(x,y,x,y2,x,y3) legend('sin(x)','sin(x-.25)','sin(x-.5)')

Mesh and Surface Plots [X,Y] = meshgrid(-8:.5:8); R = sqrt(X.^2 + Y.^2) + eps; Z = sin(R)./R; mesh(X,Y,Z,'EdgeColor','black')

Programming  if, else, and elseif if A > B 'greater' elseif A < B 'less' elseif A == B 'equal' else error('Unexpected situation') end  switch and case switch (rem(n,4)==0) + (rem(n,2)==0) case 0 M = odd_magic(n) case 1 M = single_even_magic(n) case 2 M = double_even_magic(n) otherwise error('This is impossible') end

 For for n = 3:32 r(n) = rank(magic(n)); end  Nested for for i = 1:m for j = 1:n H(i,j) = 1/(i+j); end  while While(i<25) a=a+2; end  break

Toolbox available  Communications  Control System  Curve Fitting  Fuzzy Logic  Image Processing  Instrument Control  Robust Control  Signal Processing  System Identification  Virtual Reality  Wavelet