Printversion of this page
PDF-Version of this page

 

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

The stuff below to the >> is stuff returned by matlab when starting up

< M A T L A B >

Copyright 1984-1999 The MathWorks, Inc.

Version 5.3.0.10183 (R11)

Jan 21 1999

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

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

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

A =

1 2 3

3 4 5

5 6 7

>> [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

1963 flops.

%


 
Printversion of this page
PDF-Version of this page