Part 1: Introduction to MATLAB

MATLAB for Students

Hans-Petter Halvorsen

2 3

Course Schedule Questions

Introduction to MATLAB

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)

Need Help or Guidance when not in Class? - Goto the Questions and Discussion Forum

 

Watch the Video (MathWorks) below in order to get an idea of what MATLAB is:

Open the Course Manual (PDF document) below and start doing the Exercises/Tasks inside.

 

Course Manual with Exercises

Introduction to MATLAB with detailed descriptions and step by step Examples and Exercises:

Course Manual with Exercises

The document above contains lots of Examples and self-paced Exercises that you should go through and solve on your own. The only way to learn MATLAB is to do lots of Exercises!

Note! It is recommended that you print out this document, or at least use a second PC monitor. In that way you can read and use the document while having MATLAB open at the same time.

In order to get a diploma, you need to deliver your code for the different exercises/tasks within this document.

Additional Resources

 

Videos

You should also watch the following short Videos while doing the Exercises above:

Working in the Development Environment by MathWorks

Getting Started with MATLAB by MathWorks

Working with Arrays by MathWorks

Writing a MATLAB Program by MathWorks

Using Basic Plotting Functions by MathWorks

 

These are short videos explaining the basic features in MATLAB.

 

Quick Start Guide with Examples

Below you find a Quick Introduction to MATLAB with Examples:

MATLAB Quick Start Guide with Examples

 

You may also watch the Video below (Getting Started with MATLAB):

PowerPoint

 

Online Help

Getting Started with MATLAB

 

Solutions to Exercises

Below you find detailed solutions to all the Exercises above:

Video Solutions to selected Topics:

Do you need help solving the Tasks, or just want to check if you have done it correctly? Below you find detailed Video solutions for some of the Tasks:

Scripts and User-defined Functions + PowerPoint

Plotting + PowerPoint

Flow Control and Loops + PowerPoint

Mathematics + PowerPoint

Hand-in - Part 1

When finished, submit Exercises/Tasks from ch. 6, 7, 8, 9 (Zip File "studentno_part1.zip"). Note! Dont use the .RAR compression format. In general, you only need to submit the m-files (functions and scripts) you create - not the stuff you write in the Command Window!

You dont need to submit solutions for Task 1-5 in Part one, because you have not learned to create .m files yet and you should only use the Command Window for these Tasks. In general, you only need to submit the m-files (functions and scripts) you create - not the stuff you write in the Command Window!

Note! Those who do not fulfill the conditions (filename and file format), will be deleted. You must then upload again within the deadline.

 

Submit

 

Solutions for all the Exercises/Tasks above. The solutions are password protected. After the submission deadline you will get access to neccessary access codes.

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.

Very often someone else is wondering about the same as you - or perhaps someone else has experienced the same thing and found a solution for the problem? Need help outside normal office hours? Perhaps a fellow student can help you if you ask your questions here?