Question

In: Computer Science

Solve It Using MATLAB. Perform the experiment by changing the sampling frequency of the DAC block,...

Solve It Using MATLAB.
Perform the experiment by changing the sampling frequency of the DAC block, Keep the parameters of sine wave block constant (set samples per period = 96 and sample period = 96/1000) and observe that increasing the sampling frequency is improving the waveform structure.

Solutions

Expert Solution

Question

Solve It Using MATLAB.

Perform the experiment by changing the sampling frequency of the DAC block, Keep the parameters of sine wave block constant (set samples per period = 96 and sample period = 96/1000) and observe that increasing the sampling frequency is improving the waveform structure.

MATLAB PROGRAM

clc;
clear all;
close all;
U=10; % range signal from 0 to 10
n=3; % number of bits
q=U/(2^n-1); % quantization interval
t=0:0.096:10; % your time vector
y=abs(10*sin(t)); % your signal
% -------convert to a digital signal yd-----------    
a=fix(y/q);
yd=dec2bin(a,n);
% ------you can calculate the signal yq ----------
yq=a*q;
%-------------------------------------------------
plot(t,y,'r')
hold on
grid on
plot(t,yq,'g')
hold off
grid on
xlabel('Time');
ylabel('Amplitude');
title('Sampling frequency 96/1000')

MATLAB PROGRAM

clc;
clear all;
close all;
%-------------------------------------------------
%Doubling the sampling frequency
%-------------------------------------------------
clc;
clear all;
close all;
U=10; % range signal from 0 to 10
n=3; % number of bits
q=U/(2^n-1); % quantization interval
t=0:0.048:10; % your time vector
y=abs(10*sin(t)); % your signal
% -------convert to a digital signal yd-----------    
a=fix(y/q);
yd=dec2bin(a,n);
% ------you can calculate the signal yq ----------
yq=a*q;
%-------------------------------------------------
plot(t,y,'r')
hold on
plot(t,yq,'g')
hold off


Related Solutions

Matlab project: Solve using Matlab three problems: One using the combination formula One using the permutation...
Matlab project: Solve using Matlab three problems: One using the combination formula One using the permutation of n objects formula One using the permutation of r objects out of n objects You can pick these problems from the textbook or you can make up your own questions.
Write a matlab code to do following steps; i) Record your voice by sampling frequency 22...
Write a matlab code to do following steps; i) Record your voice by sampling frequency 22 kHz ii) Down sample the voice by 2 listen to your voice iii) Down sample the voice by 3 listen to your voice Please explain the code clearly. Thank you.
Solve Kepler's Equations Using Euler's Method in matlab.
Solve Kepler's Equations Using Euler's Method in matlab.
As an auditor who is using sampling to perform a test of controls, one must be...
As an auditor who is using sampling to perform a test of controls, one must be concerned with a component of sampling risk known as the risk of incorrect acceptance. Explain what this risk is and how it relates to A.) control risk, B.) detection risk, C.) substantive procedures performed by the auditor and D.) the auditor’s opinion on financial statement fairness. Be specific.
solve any question about fourier series by using MATLAB
solve any question about fourier series by using MATLAB
Solve using matlab code!! Use the graphical method to solve 4x1 − 8x2 = −24 x1...
Solve using matlab code!! Use the graphical method to solve 4x1 − 8x2 = −24 x1 + 6x2 = 34 Check your results by substituting them back into the equations.(include this on the code)
How to find passband frequency from cut-off frequency without using MATLAB? Please show a numerical example.
How to find passband frequency from cut-off frequency without using MATLAB? Please show a numerical example.
Solve using Matlab three problems: One using the combination formula One using the permutation of n...
Solve using Matlab three problems: One using the combination formula One using the permutation of n objects formula One using the permutation of r objects out of n objects You can pick these problems from the textbook or you can make up your own questions. This is the full question I have to come up with three different problems and solve each ine using each one of these formulas on matlab ( write them on matlab as codes )
write a matlab function for frequency analysis using DFT. the function should take as input a...
write a matlab function for frequency analysis using DFT. the function should take as input a signal, and as output the number of sinusoids and their frequencies.
Suppose you are an auditor who is using audit sampling to perform substantive tests of client...
Suppose you are an auditor who is using audit sampling to perform substantive tests of client revenue for the year-ended 20X1. You have obtained the 20X1 sales journal and the population of all approved shipping documents used by the client during 20X1. Clearly explain how you could perform a test for each of the following management assertions about revenue transactions: A.) Completeness and B.) Occurrence. Be specific as to how you would perform the two tests.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT