MATLAB: I would like to read a specific string from the row which has been delimited.say for eg. i want the value 42724.6268698495. How do i do it. Its in a text file

delimiterfidtextscan

I would like to read a specific string from the row which has been delimited.say for eg. i want the value 42724.6268698495. How do i do it. Its in a text file
The file has data as below
#Started 20.12.2016 15:02:41 42724.6268698495

Best Answer

fid = fopen('YourFile.txt', 'rt');
data_cell = textscan(fid, '%*s%*s%*s%f', 'Delimiter', '\t');
fclose(fid)
data = data_cell{1};