could anyone help me please?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
clc; clear all ;close all;
close all;
data_size=8;
data=randi([0 1],data_size,1);data=data';
bp=0.000001;
disp('Binary information at transmitter :');
disp(data);
% repr of trans binary info as digital
expand=100;
baseband=zeros(1,length(data)*expand);
for n=1:1:length(data)
if data(n)==1
se=ones(expand,1);
else
data(n)=0;
se=zeros(expand,1);
end
baseband((n-1)*expand+1:n*expand)=se;
end
figure
t_bits=bp/expand:bp/expand:expand*length(data)*(bp/expand);
subplot(2,1,1);
plot(t_bits,baseband,'LineWidth',2.5);grid on;
axis([ 0 bp*length(data) -.5 1.5]);
ylabel('amplitude(volt)');
xlabel(' time(sec)');
title([' transmitting informationas digital signal']);
hold on
12 comentarios
per isakson
el 24 de Nov. de 2021
Editada: per isakson
el 24 de Nov. de 2021
See Binary Amplitude Shift Keying. Is it something like this you are looking for? Remember, we are hesitant to do homework.
Rik
el 24 de Nov. de 2021
they need to change the amplitude 0 to 0.25 and 1 to 0.75
Respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!