Matlab Fundamentals


This course provides a comprehensive introduction to the MATLAB® technical computing environment. This course is intended for beginning users and those looking for a review. No prior programming experience or knowledge of MATLAB is assumed, and the course is structured to allow thorough assimilation of ideas through hands-on examples and exercises. MATLAB competency is developed in a natural way, with an emphasis on practical application. Themes of data analysis, visualization, modeling, and programming are explored throughout the course. Topics include:


  •  What is, why is and how is Matlab ?

  •  Working with the MATLAB user interface

  • Entering commands and creating variables

  •  Performing analysis on vectors and matrices

  •  Visualizing vector and matrix data

  •  Working with data files

  •  Working with data types

  •  Automating commands with scripts

  •  Writing programs with logic and flow control

  •  Writing functions

    Detailed course outline :


This chapter introduces what is MATLAB, the MATLAB history, why the MATLAB take all this famous in the world and how could you learn MATLAB
• What is MATLAB ?
• Why MATLAB ?
• How could you learn MATLAB ?
• MATLAB future.
This chapter introduces the main features of the MATLAB integrated design environment and its user interfaces. Many themes for the course are established in this chapter, to be explored in detail in later chapters.
• Reading data from file
• Saving and loading variables
• Plotting data
• Customizing plots
• Calculating statistics and best-fit line
• Exporting graphics for use in other applications

This chapter introduces the concept of entering MATLAB commands. Creating and accessing data in variables is emphasized.
• Entering commands
• Creating variables
• Getting help
• Accessing and modifying values in variables
• Creating character variables

This chapter concentrates on performing mathematical and statistical calculations with vectors, and creating basic visualizations. The ability of MATLAB syntax to allow for calculations on whole data sets with a single command is demonstrated.
• Calculations with vectors
• Plotting vectors
• Basic plot options
• Annotating plots
This chapter focuses on matrices. Matrices can be used as mathematical objects or as collections of (vector) data. The appropriate use of MATLAB syntax to distinguish between these applications is highlighted.
• Size and dimensionality
• Calculations with matrices
• Plotting multiple columns
• Reshaping and linear indexing
As the complexity of your tasks increases, entering long sequences of commands in the Command Window becomes impractical. This chapter focuses on collecting MATLAB commands into scripts for ease of reproduction and experimentation.
• A modeling example
• The Command History
• Creating script files
• Running scripts
• Cells
This chapter considers the common important task of bringing data into MATLAB from formatted files. Because imported data can exist in a wide variety of types and formats, emphasis is given to working with cell arrays and date formats.
• Importing data
• Mixed data types
• Cell arrays
• Numbers, strings, and dates
• Exporting data
This chapter focuses on creating more complex vector plots: making multiple plots and using color and string manipulation techniques to produce eye-catching visual representations of data.
• Graphics structure
• Multiple figures, axes, and plots
• Plotting equations
• Using color
• Customizing plots
This chapter highlights the use of logical operations, variables, and indexing techniques to create flexible code that can make decisions and adapt to different situations. Other programming constructs are considered as well, for repeating sections of code and for allowing interaction with the user.
• Logical operations and variables
• Logical indexing
• Flow control
• Loops
• User input and output
• Publishing code
This chapter investigates the capabilities of MATLAB for visualizing images and matrix data in two or three dimensions. The differences in displaying images and visualizing matrix data using images are highlighted.
• Indexed images and colormaps
• Surface plots
• Contour plots
• True color images
This chapter focuses on performing typical data analysis tasks in MATLAB. Emphasis is given to developing and fitting theoretical models to real-life data. The ability to solve linear systems of equations with a single command in MATLAB is also shown.
• Correlation
• Fitting and interpolation
• Smoothing
• Regression models
• Solving linear systems of equations
• Spectral analysis and FFTs
This chapter demonstrates how to increase automation by encapsulating modular tasks as user-defined functions. Understanding how MATLAB resolves references to files and variables is highlighted.
• Creating functions
• Calling functions
• Workspaces
• Subfunctions
• Path and precedence
Very few programs work perfectly on the first attempt. Tracking down all possible problems and unintended behaviors of a program takes time and effort. This chapter covers the tools available in MATLAB to assist in the debugging process. Techniques for measuring code performance are also highlighted.
• Debugging with the MATLAB Editor
• Using breakpoints
• Measuring code performance
Data types can differ in both the kind of data they contain and the way the data is organized. This chapter introduces the types that have not been discussed elsewhere in the course, focusing on the syntax for creating variables and accessing array elements. The chapter also discusses methods for converting among data types.
• MATLAB data types
• Integers
• Cells
• Structures
• Function handles

In addition to high-level data import and export functions, MATLAB provides low-level functions that allow precise control over text and binary file I/O. This chapter highlights the use of these functions, particularly textscan, which provides precise control of reading text files.
• Opening and closing files
• Reading and writing text files


Join Now with Special Offer (Limited Period)

550 LE