MATLAB: How to extract data for plotting from a cell

cell2mat

I have a .txt file which contains some text lines and numeric data. I used this to get a cell but can't get a data matrix to plot column 1 vs column 2.
fid = fopen('1711006U1_0002_1711006U1.txt','rt');
hdr = textscan(fid,'%s %s %s %s','Delimiter',';','HeaderLines',8);
fclose(fid);

Best Answer

fid = fopen('1711006U1_0002_1711006U1.txt','r') ;
hdr = textscan(fid,'%f %f %f %f','Delimiter',';','HeaderLines',8);
fclose(fid);
wave = hdr{1} ;
counts = hdr{2} ;
plot(wave,counts) ;