Hi there, I want to convert a input sine signal( i.e the user gives that input) to a discrete time signal.

2 views (last 30 days)
If a user enters a signal as
x=sine(2*pi*2000*t);
so my code should convert it to a discrete sequence like
ans=[ 0.1, 0.54, 0.707, -0.10, -0.707......] ; ///// ( some random values ,just for explainnation)
please help in this regard

Answers (1)

Azzi Abdelmalek
Azzi Abdelmalek on 29 Mar 2014
Edited: Azzi Abdelmalek on 29 Mar 2014
t=0:0.1:10
x=sin(2*pi*2000*t)

Categories

Find more on MATLAB in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!