Grettings,
I have this html text file which I convert into a character array (38×343 char) using 'char' and I am triying to find the indices of all the lines starting with '<B>' using the command 'find'
So far I have typed this code,
[row,col]=find(strncmpi('outchar', '<B>', 3)) % outchar = variable of char array
but I keep getting empty brackets:
row = [] col = []
One line of the text file looks like this:
<B><FONT SIZE=+1 COLOR="#483D8B">COASTAL WATERS FORECAST
And I want MATLAB to output
row [3 4 5 6 …] col [1:3 ….] % 1:3 = columns from 1 to 3
What can I type?
Best Answer