Matlab Read Text File List Exclude first 34 characters -
i trying read values text file. want value after ': '.
here sample of text file. lines formated same. there 34 places before start of data.
file name : img_1184.jpg file size : 2.1 mb file modification date/time : 2012:07:14 11:53:18-05:00 file permissions : rw-rw-rw- file type : jpeg mime type : image/jpeg exif byte order : big-endian (motorola, mm)
i tried utilize code:
fileid = fopen('exif.txt'); exif1 = textscan(fileid, '%s %s','delimiter', ':');
this worked on of info data used ':' didn't work.
i tried utilize code:
fileid = fopen('exif.txt'); exif1 = textscan(fileid, '%s %s','delimiter', ': ');
this returned mess. not sure why. fragmented.
can explain how 35th value end of every string , set array?
there function strtrim(string)
in matlab strip leading , trailing spaces you. seek reading info in line @ time textscan
function after using strtrim
?
matlab
No comments:
Post a Comment