1 / 20

B: MATLAB Introduction

B: MATLAB Introduction. The name MATLAB stands for matrix laboratory. Features:. Math and computation Algorithm development Data acquisition Modeling, simulation, and prototyping Data analysis, exploration, and visualization Scientific and engineering graphics

arch
Télécharger la présentation

B: MATLAB Introduction

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. B: MATLAB Introduction The name MATLAB stands for matrix laboratory.

  2. Features: • 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. In short, MATLAB integrates data structure, programming and graphical user interface together.

  3. On Windows platforms, start MATLAB by double-clicking the MATLAB shortcut icon on your Windows desktop.

  4. MATLAB Desktop • Use desktop tools to manage your work in MATLAB. You can also use MATLAB functions to perform the equivalent of most of the features found in the desktop tools.

  5. Matlab major features and applications • Desktop Tools and Development Environment • The MATLAB Mathematical Function Library • The MATLAB Language • Graphics • MATLAB External Interfaces

  6. Command Window • Use the Command Window to enter variables and to run functions and M-file scripts. Ex 1. Ex 2.

  7. Command History • Statements you enter in the Command Window are logged in the Command History. From the Command History, you can view and search for previously run statements, as well as copy and execute selected statements. You can also create an M-file from selected statements.

  8. Help Browser • To open the Help browser, click the Help button in the desktop toolbar. • The Help browser consists of two panes, the Help Navigator, which you use to find information, and the display pane, where you view the information.

  9. Current Directory

  10. Workspace Browser • The MATLAB workspace consists of the set of variables (named arrays) built up during a MATLAB session and stored in this temporary memory. The features (e.g. dimension and data type) of these variables can be viewed in the workspace and these stored variables can be used in the subsequent calculation. • To delete variables from the workspace, select the variables and select Edit > Delete. Alternatively, use the clear function.

  11. The core of MATLAB is array and matrix to conduct calculation and to store data.

  12. Creating Matrices

  13. Array Editor • Double-click a variable in the Workspace browser, or use openvar variablename, to see it in the Array Editor. Use the Array Editor to view and edit a visual representation of variables in the workspace.

  14. Adding and Subtracting Matrices

  15. Working with Workspace

  16. Use mathematical functions in Matlab

  17. Polynomials • Polynomials p(x) = x3 – 6x2 – 11x – 6 is represented as • The roots function calculates the roots of a polynomial: • The function poly returns the polynomial coefficients:

  18. Interpolation

  19. Interpolation • Linear interpolation (default) • Nearest neighbor interpolation • Cubic spline interpolation

  20. Running M-files in the Editor/Debugger

More Related