Question: i need to know the information for simulink one. and here is the code which i used: fo = 1; wo = 2*pi*fo; fs =

i need to know the information for simulink one. and here is the code which i used:
fo = 1;
wo = 2*pi*fo;
fs = 100000;
ts = 1/fs;
V = 4;
t = 0 : ts : 3/fo; %%Three periods
Triangle = 0;
i = 1;
for n = 1:2:11
Triangle = Triangle + ((V*8*(-1)^((n-1)/2))/(n^2*pi^2))*sin(n*wo*t);
subplot(3,2,i); i = i+1;
plot(t,Triangle)
title(['1Hz Triangle Signal from ' num2str(n) 'harmonics']);
xlabel('Time (s)'); ylabel('Amplitude');
end
1) Write Matlab code & Simulink model: Generate a triangular waveform of frequency 1Hz and peak to peak amplitude of 8V. Perform tasks as outlined in section 4 for a triangular waveform of frequency 1Hz and peak to peak amplitude of 8V. Compare the frequency spectrum of this case with that you did with a square wave. Hint: use cosine wave to synthesize triangular wave from its harmonics. 1) Write Matlab code & Simulink model: Generate a triangular waveform of frequency 1Hz and peak to peak amplitude of 8V. Perform tasks as outlined in section 4 for a triangular waveform of frequency 1Hz and peak to peak amplitude of 8V. Compare the frequency spectrum of this case with that you did with a square wave. Hint: use cosine wave to synthesize triangular wave from its harmonics
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
