Matlab tutorial - Sampling a Signal

Опубликовано: 17 Июнь 2026
на канале: Knowledge
51,526
257

Buy Cheap and the Best MATLAB Books Here.
MATLAB For Dummies (2nd Edition) - https://amzn.to/2wcnuZo

My Website: www.knowledgetube.net

💖 Become a Patron: Show support & get perks!
  / skrezwan12  

Twitter: www.twitter.com/sk_rezwan
Facebook Page: www.facebook.com/knowledgetubedotnet
---------------------------------------------------------------
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);
-----------------------------------------
Thanks for watching.