Communication and Coding Theory Lab(CS491)

Slides:



Advertisements
Similar presentations
MATLAB – A Computational Methods By Rohit Khokher Department of Computer Science, Sharda University, Greater Noida, India MATLAB – A Computational Methods.
Advertisements

Introduction to MATLAB Northeastern University: College of Computer and Information Science Co-op Preparation University (CPU) 10/22/2003.
Concatenation MATLAB lets you construct a new vector by concatenating other vectors: – A = [B C D... X Y Z] where the individual items in the brackets.
Lecture 2 MATLAB fundamentals Variables, Naming Rules, Arrays (numbers, scalars, vectors, matrices), Arithmetical Operations, Defining and manipulating.
Matrix Mathematics in MATLAB and Excel
Introduction to Array The fundamental unit of data in any MATLAB program is the array. 1. An array is a collection of data values organized into rows and.
Martin Ellison University of Warwick and CEPR Bank of England, December 2005 Introduction to MATLAB.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
Introduction to MATLAB January 18, 2008 Steve Gu Reference: Eta Kappa Nu, UCLA Iota Gamma Chapter, Introduction to MATLAB,
MATLAB Tutorials Session I Introduction to MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
Matlab Basics Tutorial. Vectors Let's start off by creating something simple, like a vector. Enter each element of the vector (separated by a space) between.
What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation tools. Others include Maple Mathematica MathCad.
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Chapter 4 Review: Manipulating Matrices Introduction to MATLAB 7 Engineering 161.
Matlab for Engineers Manipulating Matlab Matrices Chapter 4.
Chapter 6 Review: User Defined Functions Introduction to MATLAB 7 Engineering 161.
Working with Arrays in MATLAB
INTRODUCTION TO MATLAB MATLAB is a software package for computation in engineering, science, and applied mathemat-ics. It offers a powerful programming.
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
INTRODUCTION TO MATLAB DAVID COOPER SUMMER Course Layout SundayMondayTuesdayWednesdayThursdayFridaySaturday 67 Intro 89 Scripts 1011 Work
Introduction to Engineering MATLAB – 4 Arrays Agenda Creating arrays of numbers  Vectors: 1-D Arrays  Arrays: 2-D Arrays Array Addressing Strings & String.
Introduction to MATLAB 1.Basic functions 2.Vectors, matrices, and arithmetic 3.Flow Constructs (Loops, If, etc) 4.Create M-files 5.Plotting.
Introduction to Matlab Patrice Koehl Department of Biological Sciences National University of Singapore
CMPS 1371 Introduction to Computing for Engineers VECTORS.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Math 252: Math Modeling Eli Goldwyn Introduction to MATLAB.
An Introduction to Programming in Matlab Emily Blumenthal
MATLAB (Matrix Algebra laboratory), distributed by The MathWorks, is a technical computing environment for high performance numeric computation and.
ENG College of Engineering Engineering Education Innovation Center 1 Arrays in MATLAB Topics Covered: 1.Creating arrays of numbers vectors matrices.
ECE 1304 Introduction to Electrical and Computer Engineering
ECE 1304 Introduction to Electrical and Computer Engineering
Manipulating MATLAB Matrices Chapter 4
Chapter 7 Matrix Mathematics
Introduction to Matlab
L – Modeling and Simulating Social Systems with MATLAB
Lecture: MATLAB Chapter 1 Introduction
Chapter 4 MATLAB Programming
JavaScript: Functions.
Outline Matlab tutorial How to start and exit Matlab Matlab basics.
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
(Mohammed Sami) Ashhab
EEE 244 Numerical Methods In Electrical Engineering
MCE 372 Engineering Analysis
Use of Mathematics using Technology (Maltlab)
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Introduction to Matrices
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
CSCI N207 Data Analysis Using Spreadsheet
Array Creation ENGR 1181 MATLAB 02.
Introduction to Matlab
Matlab Intro.
Introduction to MATLAB
CSE 307 Basics of Image Processing
Vectors and Matrices In MATLAB a vector can be defined as row vector or as a column vector. A vector of length n can be visualized as matrix of size 1xn.
Simulation And Modelling
Experiment No. (1) - an introduction to MATLAB
Using Script Files and Managing Data
Introduction to Matlab
Matlab Basics Tutorial
Introduction to Matlab:
EECS Introduction to Computing for the Physical Sciences
Matrices.
Working with Arrays in MATLAB
Matrices and Determinants
Matlab Intro.
Presentation transcript:

Communication and Coding Theory Lab(CS491) Experiment-1 Introduction to MATLAB Presented by Subhalaxmi Chakraborty

INTRODUCTION MATLAB, which stands for MATrix LABoratory, is a state-of-the-art mathematical software package, which is used extensively in both academia and industry. It is an interactive program for numerical computation and data visualization, which along with its programming capabilities provides a very useful tool for almost all areas of science and engineering

MATLAB's Power of Computational Mathematics MATLAB is used in every facet of computational mathematics. Following are some commonly used mathematical calculations where it is used most commonly − Dealing with Matrices and Arrays 2-D and 3-D Plotting and graphics Linear Algebra Algebraic Equations Non-linear Functions Statistics Data Analysis,Calculus and Differential Equations Numerical Calculations,Integration,Transforms Curve Fitting,Various other special functions

Uses of MATLAB It is used in a range of applications including − Signal Processing and Communications Image and Video Processing Control Systems Test and Measurement Computational Finance Computational Biology

VERSION: MATLAB 2017a

Different operators:

In MATLAB environment, every variable is an array or matrix. You can assign variables in a simple way. For example, x = 3 % defining x and initializing it with a valueMATLAB will execute the above statement and return the following result − x = 3 It creates a 1-by-1 matrix named x and stores the value 3 in its element. Let us check another example, x = sqrt(16) % defining x and initializing it with an expressionMATLAB will execute the above statement and return the following result −x = 4

% This is a comment >> ((1+2)*3 - 2^2 - 1)/2 Ans. 2 % Use ; to suppress output (scripts and functions) >> ((1+2)*3 - 2^2 - 1)/2; Ans. no output >> 1 + 2 + 3 + 4 + 5 ... + 6 + 7 + 8 + 9 ans: 45

who : command displays all the variable names you have used. clear command deletes all (or the specified) variable(s) from the memory.

QUESTIONS 1.Calculate the average of two numbers. 2. Calculate the factorial of 6. 3. Calculate the factorial of a number given using input . 4. Calculate the square root of a number.

Creating Vectors A vector is a one-dimensional array of numbers. MATLAB allows creating two types of vectors: Row vectors Column vectors (Column vectors are created by enclosing the set of elements in square brackets, using semicolon(;) to delimit the elements)

r = [7 8 9 10 11] r = [7 8 9 10 11]; t = [2, 3, 4, 5, 6]; res = r + t

Creating Matrices A matrix is a two-dimensional array of numbers. In MATLAB, a matrix is created by entering each row as a sequence of space or comma separated elements, and end of a row is demarcated by a semicolon. For example, let us create a 3-by-3 matrix as: m = [1 2 3; 4 5 6; 7 8 9]