MATLAB: How can i read 14,000 data points from a file

datapoints

i read the datapoints by using importdata… but this is not suited for large number of data points….i have to design a notch filter with this data….so i have to read 14000 data points from a file…. what i have to do??

Best Answer

fid = fopen('YourFile.txt');
datacell = textscan(fid, '%f%f', 14000, 'CollectOutput', 1);
fclose(fid);
youdata = datacell{1};