Short introduction to Matlab

[Pages:42]Quick introduction to Matlab

PASCAL Bootcamp in Machine Learning 2007

Outline

z Matlab introduction z Matlab elements

z Types z Variables z Matrices

z Loading, saving and ploting z Matlab Programming language z Scripts and functions

Matlab introduction

z Matlab is a program for doing numerical computation. It was originally designed for solving linear algebra type problems using matrices. It's name is derived from MATrix LABoratory.

z Matlab is also a programming language that currently is widely used as a platform for developing tools for Machine Learning

Matlab introduction

z Why it is useful for prototyping AI projects:

z large toolbox of numeric/image library functions z very useful for displaying, visualizing data z high-level: focus on algorithm structure, not on low-

level details z allows quick prototype development of algorithms

Matlab introduction

z Some other aspects of Matlab

z Matlab is an interpreter -> not as fast as compiled code

z Typically quite fast for an interpreted language z Often used early in development -> can then convert

to C (e.g.,) for speed

z Can be linked to C/C++, JAVA, SQL, etc z Commercial product, but widely used in industry

and academia

z Many algorithms and toolboxes freely available

Opening Matlab

Working Memory

Command History

Working Path

Command Window

Data Types

Variables

z Have not to be previously declared z Variable names can contain up to 63

characters z Variable names must start with a letter

followed by letters, digits, and underscores. z Variable names are case sensitive

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download