Use of Mathematics using Technology (Maltlab)

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 The language of Technical Computing.
Introduction to M ATLAB Programming Ian Brooks Institute for Climate & Atmospheric Science School of Earth & Environment
General Computer Science for Engineers CISC 106 Lecture 08 Dr. John Cavazos Computer and Information Sciences 2/27/2009.
ES 100: Introduction to Engineering Use of the Computer 1.Log in using your Novell password. If you do not know your password, immediately (now!) see Al.
Digital Image Processing Lecture3: Introduction to MATLAB.
JavaScript, Fifth Edition Chapter 1 Introduction to JavaScript.
Martin Ellison University of Warwick and CEPR Bank of England, December 2005 Introduction to MATLAB.
Introduction to MATLAB Session 1 Prepared By: Dina El Kholy Ahmed Dalal Statistics Course – Biomedical Department -year 3.
MATLAB Tutorials Session I Introduction to MATLAB Rajeev Madazhy Dept of Mechanical Engineering LSU.
REVIEW 2 Exam History of Computers 1. CPU stands for _______________________. a. Counter productive units b. Central processing unit c. Copper.
ELG 3120 Signal and System Analysis 1 Introduction to MATLAB TAs Wei Zhang Ozgur Ekici (Section A)(Section B) ELG 3120 Lab Tutorial 1.
ECE 1304 Introduction to Electrical and Computer Engineering Section 1.1 Introduction to MATLAB.
MATLAB An Introduction to MATLAB (Matrix Laboratory) 1.
MATLAB Tutorial EE 327 Signals and Systems 1. What is MATLAB? MATLAB – Matrix Laboratory The premier number-crunching software Extremely useful for signal.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (1): Introduction.
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.
MATLAB Environment ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne.
ME6104: CAD. Module 4. ME6104: CAD. Module 4. Systems Realization Laboratory Module 4 Matlab ME 6104 – Fundamentals of Computer-Aided Design.
Chapter 1 – Matlab Overview EGR1302. Desktop Command window Current Directory window Command History window Tabs to toggle between Current Directory &
Lecture 20: Choosing the Right Tool for the Job. What is MATLAB? MATLAB is one of a number of commercially available, sophisticated mathematical computation.
Lecture 26: Reusable Methods: Enviable Sloth. Creating Function M-files User defined functions are stored as M- files To use them, they must be in the.
INTRODUCTION TO MATLAB Dr. Hugh Blanton ENTC 4347.
Digital Image Processing Introduction to MATLAB. Background on MATLAB (Definition) MATLAB is a high-performance language for technical computing. The.
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.
1-2 What is the Matlab environment? How can you create vectors ? What does the colon : operator do? How does the use of the built-in linspace function.
Visual Basic.NET Windows Programming
Matlab Programming for Engineers
ECE 1304 Introduction to Electrical and Computer Engineering
Chapter 6 JavaScript: Introduction to Scripting
Release Numbers MATLAB is updated regularly
Introduction to Matlab
Introduction to Mat lab
Matlab Training Session 4: Control, Flow and Functions
L – Modeling and Simulating Social Systems with MATLAB
MATLAB Basics Nafees Ahmed Asstt. Professor, EE Deptt DIT, DehraDun.
Introduction to MATLAB
Introduction to Scripting
2) Platform independent 3) Predefined functions
Scripts & Functions Scripts and functions are contained in .m-files
Outline Matlab tutorial How to start and exit Matlab Matlab basics.
INTRODUCTION TO BASIC MATLAB
MATLAB DENC 2533 ECADD LAB 9.
Matlab Workshop 9/22/2018.
Lecture 1: Introduction
StatLab Matlab Workshop
Matlab review Matlab is a numerical analysis system
MATH 493 Introduction to MATLAB
MATLAB Tutorial Dr. David W. Graham.
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
StatLab Workshop: Intro to Matlab for Data Analysis and Statistical Modeling 11/29/2018.
Lecture 2 Introduction to MATLAB
Digital Image Processing
Communication and Coding Theory Lab(CS491)
INTRODUCTION TO MATLAB
Tutorial 10 Programming with JavaScript
CSCI N317 Computation for Scientific Applications Unit 1 – 1 MATLAB
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.
Experiment No. (1) - an introduction to MATLAB
JavaScript CS 4640 Programming Languages for Web Applications
Using Script Files and Managing Data
12th Computer Science – Unit 5
Matlab Basics Tutorial
Working with Arrays in MATLAB
Computer Simulation Lab
JavaScript CS 4640 Programming Languages for Web Applications
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

Use of Mathematics using Technology (Maltlab)

What is Maltlab ? MATLAB (matrix laboratory) is a fourth- generation high-level programming language and interactive environment for numerical computation, visualization and programming. MATLAB is developed by Math Works . It allows matrix manipulations; plotting of functions and data; implementation of algorithms; creation of user interfaces; interfacing with programs written in other languages, including C, C++, Java, and FORTRAN; analyze data; develop algorithms; and create models and applications.

Advantage of Maltlab Ease to use . Platform Independence . Predefined Functions. Device-Independent Plotting. Graphical User Interface. MATLAB Compiler.

Disadvantages of Maltlab MATLAB has two principal disadvantages: The first is that it is an interpreted language and therefore may execute more slowly than compiled languages. The second disadvantage is cost: a full copy of MATLAB is five to ten times more expensive than a conventional C or Fortran compiler.

The MATLAB Desktop The Command Window The Command History Window The Start Button The Documents Window, including the Editor/Debugger and the Array Editor Figure Windows Workspace Browser Help Browser Path Browser

The MATLAB Desktop The Command Window The Command History Window The Start Button The Documents Window, including the Editor/Debugger and the Array Editor Figure Windows Workspace Browser Help Browser Path Browser

Use of Semicolon (;) in MATLAB Semicolon (;) indicates end of statement. However, if you want to suppress and hide the MATLAB output for an expression, add a semicolon after the expression . Example : x = 3;

Adding Comments The percent symbol (%) is used for indicating a comment line. For example : x = 9 % assign the value 9 to x

Commonly used Operators and Special Characters MATLAB supports the following commonly used operators and special characters . Operator Purpose + Plus; addition operator. - Minus; subtraction operator. * Scalar and matrix multiplication operator. / Right-division operator.

Variables 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 value.

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 2-by-2 matrix as: m = [1 2 ; 4 5 ; 7 8 ] MATLAB will execute the above statement and return the following result: m = 1 2 4 5

Relational Operators Relational operators can also work on both scalar and non-scalar data. Relational operators for arrays perform element-by-element comparisons between two arrays and return a logical array of the same size, with elements set to logical 1 (true) where the relation is true and elements set to logical 0 (false) where it is not. The following table shows the relational operators available in MATLAB: Operator Description < Less than <= Less than or equal to > Greater than >= Greater than or equal to == Equal to ~= Not equal to

Vector Operations In this section, let us discuss the following vector operations: Addition and Subtraction of Vectors You can add or subtract two vectors. Both the operand vectors must be of same type and have same number of elements. Example Create a script file with the following code: A = [7, 11, 15, 23, 9]; display (C); B = [2, 5, 13, 16, 20]; display (D); C = A + B; D = A - B; When you run the file, it displays the following result: 9 16 28 39 29 5 6 2 7 -11

MATRIX A matrix is a two-dimensional array of numbers. In MATLAB, you create a matrix by entering elements in each row as comma or space delimited numbers and using semicolons to mark the end of each row. For example, let us create a 4-by-5 matrix a: a = [ 1 2 3 4 5; 2 3 4 5 6; 3 4 5 6 7; 4 5 6 7 8] MATLAB will execute the above statement and return the following result: a = 1 2 3 4 5 2 3 4 5 6 3 4 5 6 7 4 5 6 7 8

Addition and Subtraction of Matrices You can add or subtract matrices. Both the operand matrices must have the same number of rows and columns. Example Create a script file with the following code: a = [ 1 2 3 ; 4 5 6; 7 8 9]; b = [ 7 5 6 ; 2 0 8; 5 7 1]; c = a + b ; d = a - b ;

Video for Matlab https://youtu.be/IoiB16fg3tQ