text file manipulation in MATLAB
<p>I have a text file which contain a combination of string and numbers. for example like following:</p>

<p>*Preprint, echo=NO, model=NO, history=NO, contact=NO</p>

<p>*Element, type=S4R</p>

<p>1,   1,   9, 189,  84</p>

<p>2,   9,  10, 190, 189</p>

<p>3,  10,  11, 191, 190</p>

<p>4,  11,  12, 192, 191</p>

<p>*Surface, type=ELEMENT, name=Surf-1</p>

<p>I like to remove >> 2, 9, 10, 190, 189
I mean I want to have following in a new file:</p>

<p>*Preprint, echo=NO, model=NO, history=NO, contact=NO</p>

<p>*Element, type=S4R</p>

<p>1,   1,   9, 189,  84 </p>

<p>3,  10,  11, 191, 190</p>

<p>4,  11,  12, 192, 191</p>

<p>*Surface, type=ELEMENT, name=Surf-1</p>

<p>I should notice that these data are changed, and the only thing that I know about them is its number, for above example line 4.</p>

<p>I have googled many times to write a text file from another one by skipping from special line that I just know its number without much success!</p>

<p>any suggestion will be appreciated.</p>