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!