1 / 30

Introduction to Matlab The language of technical computing

Introduction to Matlab The language of technical computing. By:- ANKIT RAJ 2010AATS031U. What is MATLAB?. MATLAB stands for “ MATrix LABoratory ”.

roy
Download Presentation

Introduction to Matlab The language of technical computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction to MatlabThe language of technical computing By:- ANKIT RAJ 2010AATS031U

  2. What is MATLAB? MATLAB stands for “MATrix LABoratory”. MATLAB is a tool for doing numerical computations with matrices and vectors. It is very powerful and easy to use. It integrates computation, graphics and programming in the same environment.

  3. Matlab basic elements:- • Array: A collection data values organized into rows and columns and known by a single name.

  4. Arrays: • The fundamental unit of data in MATLAB. • Scalars are also treated as data in MATLAB (1 row and 1 column) • Row and column indices of an array start from 1. • Arrays can be classified as vectors and matrices.

  5. Vector: Array with one dimension • Matrix: Array with more than one dimension. • Size of an array is specified by the number of rows and the number of columns ,with the number of rows mentioned first.(For example: n x m array) total number of elements in an array is the product of the number of rows and the number of columns.

  6. Examples:

  7. Matrix operations • Arithmetic operators: variable_name= expression;

  8. Relational and Logical operators:

  9. Variables: • A region of memory containing an array, which is known by a user-specified name. • Contents can be used or modified at any time. • Variable name must begin with a letter, followed by any combination of letters, numbers and the underscores (_) character. Only the first 31 characters are significant. • The MATLAB language is Case Sensitive.JOHN,john,John are all different variables.

  10. The display function:disp(array) >> disp(‘Hello’) Hello >> disp 5 5 >> disp( [‘BITS’ ‘Dubai’ ] ) BITS Dubai >> name= ‘ students’; >> disp( [ ‘Hello’ name ] ) Hello students

  11. Matlab Desktop:

  12. Help Window:

  13. Basic Matlab Coding: • Code for eigenvalue picture b = linspace(0, 10,30) ; c = linspace(0, 10,30) ; [b, c] = meshgrid(b, c) ; s = 1+sqrt(b * c) ; mesh(b, c, s) grid on

  14. Reference:

  15. THANK YOU

More Related