Question

Plot in Matlab the function below (add the functions) sin(x)+sin(3x)/3+sin(5x)/5+sin(7x)/7+... Amplitude is 4/1 here 1st harm

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

- O X Figure 1 File Edit View da Insert Tools Desktop Window Help VA O E O + TIL LLL LLL 019 junk.m x + clc clear close n=4;

clc
clear
close
n=4;
x=linspace(0,360,200);
f=zeros(n,length(x));
for i=1:n
f(i,:)=sind((2*i-1)*x)/(2*i-1);
end
plot(x,sum(f))
grid on
xlabel('angle(degrees)')

Please do like the solution :-)

Add a comment
Know the answer?
Add Answer to:
Plot in Matlab the function below (add the functions) sin(x)+sin(3x)/3+sin(5x)/5+sin(7x)/7+... Amplitude is 4/1 here 1st harmonic...
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
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