I was able to parse the text when I removed [13/05/15 - 15:52:49:848] lines. But the problem is the text files is more than 1000 lines long. So is there a way I can start my textscan from TXCLIENT/RXCLIENT?
Current code
close all
clear all
fileID = fopen('Junk.txt');
D = textscan(fileID,'%s %u8 %u8 %u8 %u8 %d8 %u8 %u32','Delimiter',',');
fclose(fileID);
TxPacket.pkttype=D{2}(strcmp(D{1},'RXCLIENT'));
TxPacket.datalength=D{3}(strcmp(D{1},'RXCLIENT'));
TxPacket.pktnumber=D{4}(strcmp(D{1},'RXCLIENT'));
TxPacket.SQI=D{5}(strcmp(D{1},'RXCLIENT'));
TxPacket.RSSI=D{6}(strcmp(D{1},'RXCLIENT'));
TxPacket.LQI=D{7}(strcmp(D{1},'RXCLIENT'));
TxPacket.timestamp=D{8}(strcmp(D{1},'RXCLIENT'));