PPM Modulator
显示 更早的评论
Hi, Please how can I build a PPM modulator in simulink. The block is not available in my matlab. i am using 2008b
3 个评论
Fangjun Jiang
2011-12-19
What is PPM?
Walter Roberson
2011-12-19
Pulse Position Modulation
ska109
2016-2-13
I've made it working somehow...
采纳的回答
更多回答(3 个)
sivasena reddy
2019-5-8
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 个评论
Walter Roberson
2019-5-8
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
2021-3-21
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 个评论
Walter Roberson
2021-3-21
How does this differ from https://www.mathworks.com/matlabcentral/answers/24247-ppm-modulator#answer_374142 other than the spacing?
类别
在 帮助中心 和 File Exchange 中查找有关 Modulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!