how do i take 64 samples from a sine wave and perform 256 point DFT on that?

Hi , I am supposed to take 64 samples from a sine wave and perfrom 256 point DFT how can i do that..
please check if this code is correct
%%%%%%%%%%%%%%%
Fs = 30; % Sampling frequency
t = 0:1/Fs:1; % Time vector of 1 second
n = 64;
f = 8;
x = cos(2* pi*t*f*n);

Answers (2)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Tags

Asked:

on 9 Dec 2012

Community Treasure Hunt

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

Start Hunting!