LOGARITHM:



LOGARITHM:

>> X = 25

X =

25

>> Y = log(X)

Y =

3.2189

Exponential

>> x = 25

x =

25

>> y = log(x)

y =

3.2189

>> y = exp(x)

y =

7.2005e+010

Trignometric functions:

>> x = 35

x =

35

>> y = sin(x)

y =

-0.4282

Convolution:

m = 10

m =

10

>> n = 20

n =

20

>> s = conv(m,n)

s =

200

Deconvolution:

>> s = [7 8 9] ; t = [4 5 6];

>> c = conv(s,t)

c =

28 67 118 93 54

>> deconv(c,s)

ans =

4.0000 5.0000 6.0000

>> deconv(c,t)

ans =

7 8 9

Squareroot :

>> x = 64

x =

64

>> y = sqrt(x)

y =

8

Matrix:

a = [ 1 2 3; 4 5 6; 6 7 9]

a =

1 2 3

4 5 6

6 7 9

>> b = [ 9 8 7; 6 5 4; 3 2 5]

b =

9 8 7

6 5 4

3 2 5

sum =(a+b)

sum =

10 10 10

10 10 10

9 9 14

prod = (a*b)

prod =

30 24 30

84 69 78

123 101 115

Median:

>> a = [1 2 3 ; 1 2 3; 3 2 1; 3 2 1]

a =

1 2 3

1 2 3

3 2 1

3 2 1

>> median(a)

ans =

2 2 2

Skewness:

>> X = randn([8 6])

X =

-0.4326 0.3273 1.0668 -0.6918 0.8156 -1.6041

-1.6656 0.1746 0.0593 0.8580 0.7119 0.2573

0.1253 -0.1867 -0.0956 1.2540 1.2902 -1.0565

0.2877 0.7258 -0.8323 -1.5937 0.6686 1.4151

-1.1465 -0.5883 0.2944 -1.4410 1.1908 -0.8051

1.1909 2.1832 -1.3362 0.5711 -1.2025 0.5287

1.1892 -0.1364 0.7143 -0.3999 -0.0198 0.2193

-0.0376 0.1139 1.6236 0.6900 -0.1567 -0.9219

>> y = skewness(X)

y =

-0.2197 1.3827 -0.1373 -0.2329 -0.8618 0.2622

Plot :

x = 25

x =

25

>> y = cos(x)

y =

0.9912

plot(x,cos(x))

>> x = -pi:0.01:pi;

>> plot(x,cos(x))

>>

x= 5

x =

5

>> y = tan(x)

y =

-3.3805

>> x = -pi:0.1:pi;

>> plot(x,tan(x))

[pic]

Plot of cos function

[pic]

Plot of tan function

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download