fc = 20; %carrier frequency fm = 2; % message frequency fs = 1000; % sampling frequency t = 1; n = [0:1/fs:t]; n = n(1:end - 1); duty = 10; % no. of samples in one square wave period per = fs/fc; % no. of samples in on time on_t = per/duty; s = square(2*pi*fc*n,duty); s(find(s m); idd = diff(id); iddd = find(idd ~= 1); temp(1) = id(1); temp(2:length(iddd)+1) = id(iddd + 1); % ppm signal for i = 1:length(temp) ppm(temp(i) : temp(i) + on_t - 1) = 1; end % Plot subplot(3,1,1);plot(n,m,'LineWidth',2);title('Message Signal');hold on; plot(n,c,'r','LineWidth',2);grid on; subplot(3,1,2);plot(n,s,'LineWidth',2);title('Pulse Train');grid on; ylim([-0.2 1.2]); subplot(3,1,3);plot(n,ppm,'LineWidth',2);title('PPM Signal'); grid on; ylim([-0.2 1.2]);
Dear because lot of people know that the symbol in the logo is Indian Swastika symbol which represents prosperity and well being for all. You should do some more google search about the same.
Thanks a lot! You are really good at what you are doing!
I want to change the position of square wave (output of PWM) every cycle randomly. But width will be same in every cycle
Whats the purpose of id I'd iddd in this code sir
Can you complete the 44,45,46 steps
i am not getting the output for pulse train.Please suggest what to do !!
sir iska demodulation ka code milega kya ?
we have not made the demodulation code yet...
@@sachinsharmajcbro okay sir
the video was great though, thank you
I can't find the code on the website
drive.google.com/file/d/0B3qx_fO_3y2AWFRqQnJqNWgtTjQ/view
fc = 20; %carrier frequency
fm = 2; % message frequency
fs = 1000; % sampling frequency
t = 1;
n = [0:1/fs:t];
n = n(1:end - 1);
duty = 10;
% no. of samples in one square wave period
per = fs/fc;
% no. of samples in on time
on_t = per/duty;
s = square(2*pi*fc*n,duty);
s(find(s m);
idd = diff(id);
iddd = find(idd ~= 1);
temp(1) = id(1);
temp(2:length(iddd)+1) = id(iddd + 1);
% ppm signal
for i = 1:length(temp)
ppm(temp(i) : temp(i) + on_t - 1) = 1;
end
% Plot
subplot(3,1,1);plot(n,m,'LineWidth',2);title('Message Signal');hold on; plot(n,c,'r','LineWidth',2);grid on;
subplot(3,1,2);plot(n,s,'LineWidth',2);title('Pulse Train');grid on; ylim([-0.2 1.2]);
subplot(3,1,3);plot(n,ppm,'LineWidth',2);title('PPM Signal'); grid on; ylim([-0.2 1.2]);
Is nobody commenting about the logo?
Dear because lot of people know that the symbol in the logo is Indian Swastika symbol which represents prosperity and well being for all. You should do some more google search about the same.