MatLab Tutorial

What is it:

Basics:

Help

Line Editting

Memory Management

Constants

Matrix Manipulations

Matrix Operations

Logical Relations

Vector Operations

Math

Plotting

Programming

Flow Control

Functions

In fcn.m:
function z=fcn(x,y)
%comment

z=x+y;

Efficiency

Inefficient:
function y=cclip(x,limit) % clips y=x; for i=1:length(y) if (abs(y(i))<limit) y(i)=0.0; end end
Efficient:
function y=cclip2(x,limit) % clips y=x; z=find(abs(y)<limit); y(z)=zeros(size(z));

Signal Processing Functions

Ona Wu
ona@nmr.mgh.harvard.edu
MGH-NMR Center
CNY-2301
13th Street, Bldg 149
Boston, MA 02129