Matlab Tutorial

http://www.cyclismo.org/tutorial/matlab/

Matlab Tutorial

Clarkson University
Dept. of Mathematics
PO Box 5815
Potsdam, NY 13699-5815

Cyclismo.org

Matlab is a program that was originally designed to simplify the implementation of numerical linear algebra routines. It has since grown into something much bigger, and it is used to implement numerical algorithms for a wide range of applications. The basic language used is very similar to standard linear algebra notation, but there are a few extensions that will likely cause you some problems at first.

The goal of the tutorials here is to provide a simple overview and introduction to matlab. The tutorials are broken up into some of the basic topics. The first includes a few examples of how Matlab makes it easy to create and manipulate vectors. The tutorials move from the simple examples and lead to more complicated examples.

We have tutorials on the following subjects:
  1. Vectors

    A basic introduction on how to define and manipulate vectors in matlab. This is the most basic way that numbers are stored and accessed in matlab.
  2. Matrices

    An introduction on how to define and manipulate matrices. We demonstrate how to create matrices and how to access parts of a matrix.
  3. Vector operations

    Here we bring together elements of the first two tutorials. The real power of matlab is that the basic operations defined in linear algebra can be carried out with similar notation and a minimal number of programming steps.
  4. Loops

    We introduce the basic loop construct used in matlab. We show how to define a for loop and provide an example of a how it can be used to solve a problem.
  5. Plots

    A general overiew of the basic plotting commands is given. This is a very basic overview given to demonstrate some of the ways data can be plotted.
  6. Executable Files

    An introduction is given on how to define files that contain command that matlab can execute as if they had been typed in at the command prompt.
  7. Subroutines

    An introduction to subroutines is given. This is a more general way to provide an executable file in which generic arguments are passed back and forth through the command line.
  8. If statements

    The basic control structure in matlab is the "if" statement which allows for conditional execution of certain parts of a code. This is useful when you have to check conditions before deciding what actions should be taken.
  9. Data Files

    Matlab allows a number of ways to access data files for use in a session. The different ways to save all of the data, a particular matrix, and C style read write statements is examined. Also, the  diary command is examined to demonstrate how a text copy of a session can be saved.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值