1 2 Im really stuck on how to approach these 2 problems This

#1

#2

I\'m really stuck on how to approach these 2 problems. This is for my discrete time signals class with matlab. Can someone show me how to do them?

Solution

1.

>> x = [1 2 3 4;1 2 3 4;1 2 3 4;1 2 3 4;1 2 3 4]

x =

1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4

>> size(x)

ans =

5 4

>> y = [1 2 3 4 6;1 2 3 4 6;1 2 3 4 5;1 2 3 4 5;1 2 3 4 5;1 2 3 4 5;1 2 3 4 5]

y =

1 2 3 4 6
1 2 3 4 6
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5

>> size(y)

ans =

7 5

>> w = y*x

w =

16 32 48 64
16 32 48 64
15 30 45 60
15 30 45 60
15 30 45 60
15 30 45 60
15 30 45 60

>> size(w)

ans =

7 4

>>

2.

x = [2,7,7,3,4];
[r c]=size(x);
energyof = 0;
for i=1:c
energyof= energyof+(x(i))^2;%inner product
end
disp(energyof);

output:

energyof =

127

#1 #2 I\'m really stuck on how to approach these 2 problems. This is for my discrete time signals class with matlab. Can someone show me how to do them?Solution
#1 #2 I\'m really stuck on how to approach these 2 problems. This is for my discrete time signals class with matlab. Can someone show me how to do them?Solution

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site