MATLAB: Skipping elements in an array

arrayloadmatrixstringtext file

FYI I'm new to coding. Anyway I have a .txt file with numbers and strings (I attached the .txt file). The first line of the file has string and numbers I don't need. I only need the values that come after "points". For my assignment I need to
  • Load the .txt file
  • Read only the values that I need
  • Put those values into a single column array for graphing
Thanks,

Best Answer

fid = fopen('Normal.txt') ;
S = textscan(fid,'%f','HeaderLines',1) ;
fclose(fid) ;
S = cell2mat(S) ;
Related Question