연구사항/AVR,Raspberry
[Matlab] 사각파 : Rectangular pulse
by 음악공학
2009. 5. 11. 12:00
728x90
Matlab로 각종 신호를 만들어 봅시다 :-)
☆. Rectangular pulse
>> rc1=[ones(1,10), zeros(1,100)]; % 0부터 10까지 1인 펄스
>> rc2=[zeros(1,40), ones(1,10), zeros(1,100)]; % 40부터 50까지 1인 펄스
>> subplot(2,1,1); stem(rc1, '.'); axis([0 100 -0.5 1.5]);
>> subplot(2,1,2); stem(rc2, '.'); axis([0 100 -0.5 1.5]);
반응형