Given code:
Am=5; % Amplitude of modulating signal
fa=300; % Frequency of modulating signal
Ta=1/fa; % Time period of modulating signal
Ts=Ta/80; % Sampling interval
t=0:Ts:(10*Ta-Ts); % Total time for simulation
ym=Am*cos(2*pi*fa*t); % Equation of sinusoidal modulating signal
figure(1) subplot(4,1,1); plot(t,ym)grid on; % Graphical representation of input modulating signal
title ( ' Input Modulating Signal '); xlabel ( ' Time (sec) '); ylabel (' Amplitude (volt) ');
My Question: How to modify the program code of the “Input modulating signal” (line 6) to generate a 10 bit digital signal , which the 10 digits are "1753682094" with each digit spans for a period of Ta .
Best Answer