2-Repeat the exercise with sampling rate less than 2Hz. 3-Repeat the exercise for the following continuous time signals: sin(4*pi*t + [pi/4])

Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
icon
Related questions
Question
100%

solve 2 &3

Software Used: MATLAB
1-Enter the ZOH program. Try adjusting the sampling rate of the digital system.
disp ('Zero Order Hold Circuits');
Tcont = 0.001 % Set continuous time increment must be <<
samplingincrement
tc=0: Tcont:2; % Define continuous time vector from 0 to 2
A = sin (2*pi*1*tc); % Define continuous signalw=2pif, f=1Hz sinewave
%A sin (4*pi*1*tc+(pi/4)); %%% 3-Repeat the exercise
=
figure(1)
hold on % Hold figure for more than one plot
plot (tc,A)
Tsample
=
0.1; % Define sampling time
ts=0: Tsample: 2; % Define digital time vector from 0 to 1
As = sin (2*pi*1*ts);
%As = sin(4*pi*1*ts+(pi/4)); %%% 3-Repeat the exercise
stem(ts, As,'g') % Plot samples on same axis as continuous
signal
hold off % Release figure
title('continuous signal with samples')
legend('continuous signal', 'samples')
figure (2) % ZOH characteristics
hold
title('ZOH characteristics')
plot (tc,A) % re-plot continuous waveform
stem(ts, As,'g') % re-plot samples
stairs(ts,As, 'c') % "fill in" samples
hold off
legend('continuous signal', 'samples', 'ZOH characteristics')
% For demonstration purposes, add a continuous signal equal to
A, but delayed by T/2.
B= sin(2*pi*1*(tc-Tsample/2));
0/0/0/
%B= sin(2*pi*1*(tc-Tsample/2)+(pi/4)); %%% 3-Repeat the exercise
figure(3)
hold on
plot (tc,A) % re-plot continuous waveform
stairs(ts, As, 'c') % Plot ZOH characteristic
plot(tc,B, 'r') % Plot delayed signal
hold off
title('continuous signal with ZOH characteristic')
legend('continuous signal', 'ZOH characteristics', 'delayed
signal')
2-Repeat the exercise with sampling rate less than 2Hz.
3-Repeat the exercise for the following continuous time signals: sin(4*pi*t + [pi/4])
Transcribed Image Text:Software Used: MATLAB 1-Enter the ZOH program. Try adjusting the sampling rate of the digital system. disp ('Zero Order Hold Circuits'); Tcont = 0.001 % Set continuous time increment must be << samplingincrement tc=0: Tcont:2; % Define continuous time vector from 0 to 2 A = sin (2*pi*1*tc); % Define continuous signalw=2pif, f=1Hz sinewave %A sin (4*pi*1*tc+(pi/4)); %%% 3-Repeat the exercise = figure(1) hold on % Hold figure for more than one plot plot (tc,A) Tsample = 0.1; % Define sampling time ts=0: Tsample: 2; % Define digital time vector from 0 to 1 As = sin (2*pi*1*ts); %As = sin(4*pi*1*ts+(pi/4)); %%% 3-Repeat the exercise stem(ts, As,'g') % Plot samples on same axis as continuous signal hold off % Release figure title('continuous signal with samples') legend('continuous signal', 'samples') figure (2) % ZOH characteristics hold title('ZOH characteristics') plot (tc,A) % re-plot continuous waveform stem(ts, As,'g') % re-plot samples stairs(ts,As, 'c') % "fill in" samples hold off legend('continuous signal', 'samples', 'ZOH characteristics') % For demonstration purposes, add a continuous signal equal to A, but delayed by T/2. B= sin(2*pi*1*(tc-Tsample/2)); 0/0/0/ %B= sin(2*pi*1*(tc-Tsample/2)+(pi/4)); %%% 3-Repeat the exercise figure(3) hold on plot (tc,A) % re-plot continuous waveform stairs(ts, As, 'c') % Plot ZOH characteristic plot(tc,B, 'r') % Plot delayed signal hold off title('continuous signal with ZOH characteristic') legend('continuous signal', 'ZOH characteristics', 'delayed signal') 2-Repeat the exercise with sampling rate less than 2Hz. 3-Repeat the exercise for the following continuous time signals: sin(4*pi*t + [pi/4])
Expert Solution
steps

Step by step

Solved in 5 steps with 6 images

Blurred answer
Knowledge Booster
Nyquist Plot
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,