Matlab tutorial – Sampling a Signal

Codes:

%Sampling Theorem

clear all;
close all;
clc;
f=input(‘Enter frequency’);
%T=1/f;
fs1=input(‘Enter the sampling frequency’);

t=0:0.1:100;
t1=0:10:500;

x=sin(2*3.14*f*t); %2*pi*f*t
subplot(2,1,1);
plot(t,x);

y=sin(2*3.14*f*t1/fs1);
subplot(2,1,2);
stem(t1,y);

————————————————————-
How to Sample an Analog signal in Matlab
ADC
DSP
Digital Signal Processing
Matlab Tutorial
Matlab Basic
Matlab for Beginner

Comments

R sai krishna says:

A headphone mike would have done a better job for recording

Mohanish Tikekar says:

If you take f=100Hz, fs=10Hz, you are voilating Niquist Theorem as fs should be >= 2*f, right?

Søren Andreasen says:

my friend, you really need a better microphone. asap.

Houssam Rachdi says:

This is incorrect

shruthi iii says:

#conversion of analog to digital signal with time t=nTs is sampling theorem ie fs>=2fm.

Write a comment

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours