MATLAB/Getting started

< MATLAB

This resource "shadows" an excellent introduction by the people who maintain Matlab.

You can access appropriate chapters of this introduction by clicking the link that begins each section. (These tutorials are also available from your main MatLab GUI window[1].

Desktop basics

Desktop Basics shows you the default layout before you open an m-file. (The codes you write are called m-files). It also give very basic information on how to use MATLAB as a calculator, e.g., 2+3=5.

Matrices and arrays

Matrices and Arrays shows you how to create arrays, (including arrays of zeros). Important array operations to know about are concatenation (i.e. adding rows or columns), transpose, inverse, and element-wise operations.

Array indexing

Array indexing Helps you sort out the rows and columns of arrays. It introduces just two of many uses of the colon

Workspace variables

Workspace Variables introduces you to the Workspace Variables window in the lower left corner of your GUI.

Character string

Character Strings

Calling functions

Calling Functions introduces you to functions using max, dis, and clc as examples.

2D and 3D plots

2D and 3D Plots will tell you most of what you need to know about plotting.

Programming and scripts

Programming and Scripts will get you started in running m-files. There are two types: functions and scripts.

Help and documentation

Help and Documentation If you know the name of your function, type help functionname for quick help and help functionname for a link to pages explaining the function.

Links and footnotes

  1. Open MATLAB and look for the statement:

    New to MATLAB? Watch this Video, see Examples, or read Getting Started .

    If you do not see this line, use Help>>Matlab>>Getting Started
This article is issued from Wikiversity - version of the Thursday, November 20, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.