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

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

Products

Asked:

on 29 Mar 2014

Commented:

on 29 Mar 2014

Community Treasure Hunt

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

Start Hunting!