Here is an example of using matlab.

The statments you enter are preceded by the

Mablab prompt >>

The rest is the response of Matlab.

% is the shell prompt.

On an appropriate terminal, type

% matlab

You might get some stuff blown onto the screen prior to seeing the Matlab prompt >>

To get started, type one of these: helpwin, helpdesk, or demo.

For product information, type tour or visit www.mathworks.com.

You can type pwd to see what directory you are in

Next type in a matrix.

>> A=[1, 2, 3; 3, 4, 5; 5, 6, 7]

A =

1 2 3

3 4 5

5 6 7

Then you can compute the Singular Value Decomposition of that Matrix

>> [u,s,v]=svd(A)

u =

0.2779 0.8696 -0.4082

0.5371 0.2117 0.8165

0.7964 -0.4462 -0.4082

s =

13.1593 0 0

0 0.9119 0

0 0 0.0000

v =

0.4462 -0.7964 0.4082

0.5686 -0.1000 -0.8165

0.6911 0.5964 0.4082

exit kills the program.

You might want to periodically type

>>clear all

to clear all your registers and release the memory you have accumulated

>> exit

1963 flops.

%