Sie sind auf Seite 1von 7

MATLAB Training

© Hans-Petter Halvorsen
Here you will learn basic MATLAB and how to use MATLAB in Modelling,
Simulation and Control applications. An introduction to Simulink and other
Tools will also be given.
Table of Contents:

MATLAB Training Part 1 - Introduction to MATLAB


The MATLAB Environment (IDE), MATLAB Basics, Vectors and Matrices, Plotting, Scripts (m-
files), User-defined Functions, Flow Control (if...elseif...else, while, switch...case).

MATLAB Training Part 2 - Modelling, Simulation and Control


Solving Differential Equations (ODEs), Discrete Systems, Interpolation/Curve Fitting, Numerical
Differentiation/Integration, Optimization, Transfer Functions/State-space Models, Frequency
Response.

MATLAB Training Part 3 - Simulink and Advanced Topics


Introduction to Simulink Combining Simulink & MATLAB
(Data-driven Modelling), Debugging in MATLAB, More about functions, More about Plots, Using
Cells in the MATLAB Editor, Importing Data, Structures and Cell Arrays.

Final Test and Diploma Questions and Discussion Forum

Introduction
MATLAB is a tool for technical computing, computation and visualization in an integrated
environment. MATLAB is an abbreviation for MATrix LABoratory, so it is well suited for matrix
manipulation and problem solving related to Linear Algebra, Modelling, Simulation and Control
applications, etc.
Watch the Video below in order to get an idea of what MATLAB is:

The MATLAB Development Environment

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 1


MATLAB Basics Videos - Videos explaining the basic features in MATLAB
If you don’t have MATLAB, you can buy a MATLAB student version (350-699 NOK), which you
can install on your personal computer. The MATLAB student version includes the most used
Toolboxes as well, like Simulink, Control System Toolbox, Optimization Toolbox, Statistics
Toolbox, etc.
Students and staff at University College of Southeast Norway can freely install the MATLAB
Software on their own computers, since the university has a Total Academic Headcount (TAH)
License. The Activation Key is located in Fronter, where only students and staff at the university have
access.
The MATLAB Training consists of Tutorials, Examples and Exercises together with a set of Videos.
The MATLAB Training consists of 3 parts.
Need to buy new PC? Here are some PC recommendations.
What is the purpose with this training?
1. To give a Practical Introduction to basic Programming and Simulation.
2. Learn to apply basic Math and Physics knowledge (theory learned at Bachelor level).
3. To learn to use the MATLAB software within these Applications. When you have learned
MATLAB, you may easily switch to similar programs.
MATLAB is very easy to use compared to similar tools, so it is a good tool to start with for
inexperienced users. At the same time it is very powerful and it can be used for advanced simulations,
so you will never grow away from it - neither in school or work context.

How to Study

MATLAB Training - Part 1


Contents: The MATLAB Environment (IDE), MATLAB Basics, Vectors and Matrices, Plotting,
Scripts (m-files), User-defined Functions, Flow Control (if...elseif...else, while, switch...case).
Open the following Course Manual (PDF document) and start doing the Exercises/Tasks inside:

Introduction to MATLAB (Self-paced Course Manual with Exercises)


Additional Resources
PowerPoint:

Part 1 Overview (PowerPoint with Introduction Examples)


Getting Started with MATLAB:

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 2


Getting Started with MATLAB
Videos for the different Topics in Part 1:

Working in the Development Environment by The MathWorks

Getting Started with MATLAB by The MathWorks

Working with Arrays by The MathWorks

Writing a MATLAB Program by The MathWorks

Using Basic Plotting Functions by The MathWorks

Online Help:

Getting Started with MATLAB

Solutions
In the Videos below I will go through the different Exercises/Tasks in Part 1 in detail. All solutions
are password protected.
Videos:

Scripts and User-defined Functions

Plotting

Flow Control and Loops

Mathematics

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 3


Solutions for all the Exercises/Tasks in Part 1 - You will get the Access Code from your
instructor when you have finished Part 1.

Congratulations - You are finished with Part 1

MATLAB Training - Part 2


Contents: Solving Differential Equations (ODEs), Discrete Systems, Interpolation/Curve Fitting,
Numerical Differentiation/Integration, Optimization, Transfer Functions/State-space Models,
Frequency Response.
Open the following Course Manual (PDF document) and start doing the Exercises/Tasks inside:

Modelling, Simulation and Control (Self-paced Course Manual with Exercises)


Additional Resources
PowerPoint:

Part 2 Overview (PowerPoint with Introduction Examples)

Videos for the different Topics in Part 2:

Control System Toolbox Overview

PID Control Design with Control System Toolbox

Online Help:

Ordinary Differential Equations

Numerical Integration and Differentiation

Solutions
In the Videos below I will go through the different Exercises/Tasks in Part 2 in detail. All solutions
are password protected.
Videos:

Differential Equations and ODE Solvers

Discrete Systems

Interpolation and Curve Fitting

Numerical Differentiation

Numerical Integration

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 4


Optimization

Solutions for all the Exercises/Tasks in Part 2 - You will get the Access Code from your
instructor when you have finished Part 2.

Congratulations - You are finished with Part 2

MATLAB Training - Part 3


Contents: Introduction to Simulink Combining Simulink & MATLAB
(Data-driven Modelling), Debugging in MATLAB, More about functions, More about Plots, Using
Cells in the MATLAB Editor, Importing Data, Structures and Cell Arrays.
Open the following Course Manual (PDF document) and start doing the Exercises/Tasks inside:

Simulink and Advanced Topics (Self-paced Course Manual with Exercises)


Additional Resources
PowerPoint:

Part 3 Overview (PowerPoint with Introduction Examples)

Videos for the different Topics in Part 3:

Simulink Overview by The MathWorks

Getting Started with Simulink by The MathWorks

Importing Data from Files by The MathWorks

Importing Spreadsheets into MATLAB by The MathWorks

Introducing Structures and Cell Arrays by The MathWorks

Online Help:

Simulink

Solutions
In the Videos below I will go through the different Exercises/Tasks in Part 3 in detail. All solutions
are password protected.
Videos:

Simulink

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 5


Solutions for all the Exercises/Tasks in Part 3 - You will get the Access Code from your
instructor when you have finished Part 3.

Congratulations - You are finished with Part 3

Final Test and Diploma


Note! You can only take the Final Test on campus at University College of Southeast
Norway under surveillance from an instructor. You will get the Access Code from your
instructor when you have finished Part 1, 2 and 3.
Aids: A PC with MATLAB + pen and paper. No notes, course manuals, Internet, no
talking, etc. allowed!
Duration: Maximum 90 minutes (you will probably use less time).
Recommendations before printing the Diploma:
 Make sure that you can use one of the Printers at the university
(http://www.hit.no/eng/HiT/Student/IT-Services/Follow-me).
 Using a color printer is recommended. Before printing the diploma (an ordinary web page),
you should remove headers and footers because the print out will look nicer and fit on one A4
page. This is done in the printer settings/page properties in your web browser.
 I recommend that you try to print out a web page from your personal computer in advance,
using a color printer and removing headers and footers, just to make sure it looks nice.
 You can use on of the computers at school or your personal computer for the test. Print out
the diploma when you are finished with the test, then give it to the instructor for signing.

Congratulations - You are finished with the MATLAB Training

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 6


Additional
Resources
Do you want to learn more? Take a
closer look at these additional resources:

MATLAB Basics

Modelling, Simulation and Control with MATLAB

Questions and Discussion Forum


In this Forum everybody can ask Questions, answer Questions, give Tips and Tricks, Share
Information, etc. regarding MATLAB. Please use Full Name and Picture and Write in English.

ING. ARMANDO ALBERTO CAJAHUARINGA CAMACO 7

Das könnte Ihnen auch gefallen