PPM Modulator
Mostra commenti meno recenti
Hi, Please how can I build a PPM modulator in simulink. The block is not available in my matlab. i am using 2008b
3 Commenti
Fangjun Jiang
il 19 Dic 2011
What is PPM?
Walter Roberson
il 19 Dic 2011
Pulse Position Modulation
ska109
il 13 Feb 2016
I've made it working somehow...
Risposta accettata
Più risposte (3)
dave
il 19 Dic 2011
0 voti
sivasena reddy
il 8 Mag 2019
clc;
close all;
clear all;
t=0:0.001:1;
s=sawtooth(2*pi*10*t+pi);
m=0.75*sin(2*pi*1*t);
n=length(s);
for i=1:n
if (m(i)>=s(i))
pwm(i)=1;
elseif (m(i)<=s(i))
pwm(i)=0;
end
end
plot(t,pwm,'g',t,m,'r',t,s,'--b');
ylabel('Amplitude');
axis([0 1 -1.5 1.5]);
xlabel('Time index');
title('PWM Wave');
grid on;
1 Commento
Walter Roberson
il 8 Mag 2019
The user had requested Simulink implementation, though.
Also, you appear to be doing PWM (Pulse Width Modification) rather than PPM (Pulse Position Modification)
Atul Kumar
il 21 Mar 2021
clc;
close all;
clear all;
t=0:0.001:1;
s=sawtooth(2*pi*10*t+pi);
m=0.75*sin(2*pi*1*t);
n=length(s);
for i=1:n
if (m(i)>=s(i))
pwm(i)=1;
elseif (m(i)<=s(i))
pwm(i)=0;
end
end
plot(t,pwm,'g',t,m,'r',t,s,'--b');
ylabel('Amplitude');
axis([0 1 -1.5 1.5]);
xlabel('Time index');
title('PWM Wave');
grid on;
1 Commento
Walter Roberson
il 21 Mar 2021
How does this differ from https://www.mathworks.com/matlabcentral/answers/24247-ppm-modulator#answer_374142 other than the spacing?
Categorie
Scopri di più su Modulation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!