From: Nic Roberts on

> > > fid=fopen('/sim/TLV1117LV_DS/x0138322/spice/final.in.prt');
> > > while(1)
> > > tline2=fgetl(fid);
> > > if isempty(tline2), break, end
> > > x=regexp(tline2,'operating','start');
> > > if (x==0)
> > > tline2=fgetl(fid),continue,end
> > > else
> > > tline3=fgetl(fid),continue,end
> > > TL3=[TL3 sym(tline3)];
> > > end

Your code is horrible. Whats with all the commas?