I 've a csv.file part of it given below
{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\pard\lang1033\f0\fs17
$GPGGA, 142621.00, 4106.29338717, N, 02901.18386180, E, 5, 06, 7.2, 103.3\par
$SDDBT, 1.3, f, 0.3, M, 0.2, F*05\par
\par
$GPGGA, 142622.00, 4106.29339273, N, 02901.18387863, E, 5, 06, 7.2, 103.3\par
$SDDBT, 1.3, f, 0.3, M, 0.2, F*05\par
\par
$GPGGA, 142623.00, 4106.29339566, N, 02901.18386326, E, 5, 06, 7.2, 103.3\par
$SDDBT, 1.3, f, 0.3, M, 0.2, F*05\par
\par
.
.
.
I 've problems \par at the end of line since I can't read value 103.3 And I couldn't make the program reads 2 lines by 2 lines (skipping "\par" line) at the same time with mixed variables
this gets rits of /par but it is not formatted reading. I am unsure using "csvread or fscanf"
fid = fopen('filename','r+');
C = textscan(fid, '%s', 'Delimiter', '\n', 'CommentStyle', '\','headerlines',2);
C = C{:}; fclose(fid);
I am not sure if textscan is able to read every nth line but I would read your file line by line using fgets:
Please be aware that C1 and C2 are cell arrays with strings.