Question

(c) Define the K partial sum approximation to z(t) as K(t)Bc( Use Matlab to evaluate and plot two periods of the K-th term in

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The sianal t) s even Sammetsi 4(2cm2 +4@s.(np)....e«-5〕 Sin (Tn

MATLAB CODE:

clc
clear all
close all
K = [1 3 7 29 99];
t = -1:0.01:1;
T=1;
for i=1:length(K)
x=0;
for n = 1:1:K(i)
a0 = 0;
an=8*(sin(pi*n/2)).^2./(pi*n).^2;
bn=0;
x = x+ an.*cos(2*pi*n.*t/T)+bn.*sin(2*pi*n.*t/T);
end
plot(t,x,'color',rand(1,3))
hold on
end
legend('K=1','K=3','K=7','K=29','K=99')
xlabel('time');
ylabel('amplitude');

Plot:

0.8ト 0.6 0.4 0.2 K-3 K-29 K-99 -0.2 0.4 0.6 0.8 -1 1 0.8 0.6 -0.4 0.2 0 0.2 0.4 0.6 0.8 1 time

Add a comment
Know the answer?
Add Answer to:
(c) Define the K partial sum approximation to z(t) as K(t)Bc( Use Matlab to evaluate and plot two periods of the K-th term in this sum and plot ax(t) for K1,3,7,29, and 99. Submit the term values,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a...

    Need help with this Matlab program %% Exercise 1 % NOTE: Please suppress output--i.e., use a semicolon ';' at the end of any % commands for which the output is not necessary to answer the question. % Delete these notes before turning in. % Define input variable theta as discretized row vector (i.e., array). theta = ??; % Define radius. r = ??; % Define x and y in terms of theta and r. x = ??; y = ??;...

  • 1) a) Write MATLAB function that accepts a positive integer parameter n and returns a vector...

    1) a) Write MATLAB function that accepts a positive integer parameter n and returns a vector containing the values of the integral (A) for n= 1,2,3,..., n. The function must use the relation (B) and the value of y(1). Your function must preallocate the array that it returns. Use for loop when writing your code. b) Write MATLAB script that uses your function to calculate the values of the integral (A) using the recurrence relation (B), y(n) for n=1,2,... 19...

  • Based on the document below, 1. Describe the hypothesis Chaudhuri et al ids attempting to evaluate;...

    Based on the document below, 1. Describe the hypothesis Chaudhuri et al ids attempting to evaluate; in other words, what is the goal of this paper? Why is he writing it? 2. Does the data presented in the paper support the hypothesis stated in the introduction? Explain. 3.According to Chaudhuri, what is the potential role of thew alkaline phosphatase in the cleanup of industrial waste. CHAUDHURI et al: KINETIC BEHAVIOUR OF CALF INTESTINAL ALP WITH PNPP 8.5, 9, 9.5, 10,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT