SlideShare a Scribd company logo
Sampling and filtering
clear all;
close all;
Am=10;
fm=6.283;
T=1/fm;
ncy=5;
t=0:T/999:ncy*1/fm;
m=Am*sin(2*pi*fm*t);
subplot(4,1,1);
grid minor
plot(t,m);
title('Continuous signal');
xlabel('time(s)');
ylabel('Amplitude(v)');
fs1=94.2477;
t1=0:1/fs1:1/fm*ncy;
m1=Am*sin(2*pi*fm*t1);
subplot(4,1,2);
plot(t1,m1);
hold on
stem(t1,m1);
title('fs>2fm');
xlabel('time(s)');
ylabel('Amplitude(v)');
fs2=25.132;
t2=0:1/fs2:1/fm*ncy;
m2=Am*sin(2*pi*fm*t2);
subplot(4,1,3);
plot(t2,m2);
hold on
stem(t2,m2);
title('fs=2fm');
xlabel('time(s)');
ylabel('Amplitude(v)');
fs3=4.283;
t3=0:1/fs3:1/fm*ncy;
m3=Am*sin(2*pi*fm*t3);
subplot(4,1,4);
plot(t3,m3);
hold on
stem(t3,m3);
title('fs<2fm');
xlabel('time(s)');
ylabel('Amplitude(v)');
simulink
output

More Related Content

What's hot

Tele3113 wk5wed
Tele3113 wk5wedTele3113 wk5wed
Tele3113 wk5wed
Vin Voro
 
B. Cylindrical Resonant Solutions vs Magnetron Frequency
B. Cylindrical Resonant Solutions vs Magnetron FrequencyB. Cylindrical Resonant Solutions vs Magnetron Frequency
B. Cylindrical Resonant Solutions vs Magnetron Frequency
Kurt Zeller
 
"Super" Worried Father Solution (edited)
"Super" Worried Father Solution (edited)"Super" Worried Father Solution (edited)
"Super" Worried Father Solution (edited)
blindsh0t
 
Nautilus, DNA, and snowflakes
Nautilus, DNA, and snowflakesNautilus, DNA, and snowflakes
Nautilus, DNA, and snowflakes
Raul Duque
 

What's hot (19)

딥러닝 교육 자료 #2
딥러닝 교육 자료 #2딥러닝 교육 자료 #2
딥러닝 교육 자료 #2
 
Tele3113 wk5wed
Tele3113 wk5wedTele3113 wk5wed
Tele3113 wk5wed
 
B. Cylindrical Resonant Solutions vs Magnetron Frequency
B. Cylindrical Resonant Solutions vs Magnetron FrequencyB. Cylindrical Resonant Solutions vs Magnetron Frequency
B. Cylindrical Resonant Solutions vs Magnetron Frequency
 
簡報1
簡報1簡報1
簡報1
 
Implementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlabImplementasi FIR filter menggunakan matlab
Implementasi FIR filter menggunakan matlab
 
Markov Model for TMR System with Repair
Markov Model for TMR System with RepairMarkov Model for TMR System with Repair
Markov Model for TMR System with Repair
 
Laplace1
Laplace1Laplace1
Laplace1
 
Sol89
Sol89Sol89
Sol89
 
Ch1hw
Ch1hwCh1hw
Ch1hw
 
bask, bfsk, bpsk
bask, bfsk, bpskbask, bfsk, bpsk
bask, bfsk, bpsk
 
Fmax Analysis
Fmax AnalysisFmax Analysis
Fmax Analysis
 
1.5.2 Frequency
1.5.2 Frequency1.5.2 Frequency
1.5.2 Frequency
 
Day 1b examples
Day 1b examplesDay 1b examples
Day 1b examples
 
Statistics for Economics Final Exam Cheat Sheet
Statistics for Economics Final Exam Cheat SheetStatistics for Economics Final Exam Cheat Sheet
Statistics for Economics Final Exam Cheat Sheet
 
"Super" Worried Father Solution (edited)
"Super" Worried Father Solution (edited)"Super" Worried Father Solution (edited)
"Super" Worried Father Solution (edited)
 
Question 1 Solutions
Question 1 SolutionsQuestion 1 Solutions
Question 1 Solutions
 
Master method theorem
Master method theoremMaster method theorem
Master method theorem
 
Two Curves Upfront
Two Curves UpfrontTwo Curves Upfront
Two Curves Upfront
 
Nautilus, DNA, and snowflakes
Nautilus, DNA, and snowflakesNautilus, DNA, and snowflakes
Nautilus, DNA, and snowflakes
 

Recently uploaded

Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
Kamal Acharya
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
Kamal Acharya
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
Kamal Acharya
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
Kamal Acharya
 

Recently uploaded (20)

The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docxThe Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
The Ultimate Guide to External Floating Roofs for Oil Storage Tanks.docx
 
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES  INTRODUCTION UNIT-IENERGY STORAGE DEVICES  INTRODUCTION UNIT-I
ENERGY STORAGE DEVICES INTRODUCTION UNIT-I
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdfA CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT.pdf
 
Hall booking system project report .pdf
Hall booking system project report  .pdfHall booking system project report  .pdf
Hall booking system project report .pdf
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
Online blood donation management system project.pdf
Online blood donation management system project.pdfOnline blood donation management system project.pdf
Online blood donation management system project.pdf
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
NO1 Pandit Amil Baba In Bahawalpur, Sargodha, Sialkot, Sheikhupura, Rahim Yar...
 
Arduino based vehicle speed tracker project
Arduino based vehicle speed tracker projectArduino based vehicle speed tracker project
Arduino based vehicle speed tracker project
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Explosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdfExplosives Industry manufacturing process.pdf
Explosives Industry manufacturing process.pdf
 
Introduction to Casting Processes in Manufacturing
Introduction to Casting Processes in ManufacturingIntroduction to Casting Processes in Manufacturing
Introduction to Casting Processes in Manufacturing
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
Fruit shop management system project report.pdf
Fruit shop management system project report.pdfFruit shop management system project report.pdf
Fruit shop management system project report.pdf
 

Sampling and filtering