Click here to Skip to main content
15,910,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi ive been given a set of about 20k data points. i managed to import the data into matlab and did the following,

importdata;
fft(importdata);

and it says Undefined function 'fft' for input arguments of type 'cell'.
now i understand i need more than this to get it working, can someone please tell me any more parameters i need for the fft and how to implement it?

edit: these datapoints are timestamps of when something is detected in a machine,
im trying to find if there is a period of the detection occuring.

anyone have ideas how to trasnform it so i can use matlab fft?
Posted
Updated 23-Jan-14 23:43pm
v2

I'm guessing the file is binary data so the importdata has created a cell array.
Try the cell2mat function[^] to convert to a matrix that fft can use.
 
Share this answer
 
The fft()[^] routine functions on vectors and/or arrays (preferably on vectors of data type double, since we're talking about time a vector makes more sense). If your data is not in that format, then you have to get it in that format.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900