From: Abhishek on
Hi
I am reading the file
'z'
'x'
'o,p,q,r,s,t,u,v,w,T'
'A*p+B*u'
'y*p+D*q+E*r+F*s'
'G*q+H*r+I*t'
'J*q+K*s+L*x'
'M*r+N*o+O*t+2*x*P'
'2*x*Q+R*o+S1*s+P*t+U*T+V*z'
'W*o+N*t+X*T+R*2*x+Y*v'
'd*w+e*v+f*u'
'g*u+h*p+i*w+j*v'
'k*v+l*o+m*w+n*u'
'Z*T+2*x*a+b*z+c*o'
using
fid=fopen('/sim/TLV1117LV_DS/x0138322/scripts/userinput.m');

while(1)
tline1 =fgetl(fid);

%TL1 =sym(tline1);
%if (tline1 == -1||''), break, end
if isempty(tline1), break, end

TL1 = sym(tline1);

end
which return the TL1=
'Z*T+2*x*a+b*z+c*o'
tell me a way to get the complete file
thank you
From: someone on
"Abhishek " <abhi14jan(a)yahoo.com> wrote in message <i248dq$rqf$1(a)fred.mathworks.com>...
> Hi
> I am reading the file
> 'z'
> 'x'
> 'o,p,q,r,s,t,u,v,w,T'
> 'A*p+B*u'
> 'y*p+D*q+E*r+F*s'
> 'G*q+H*r+I*t'
> 'J*q+K*s+L*x'
> 'M*r+N*o+O*t+2*x*P'
> '2*x*Q+R*o+S1*s+P*t+U*T+V*z'
> 'W*o+N*t+X*T+R*2*x+Y*v'
> 'd*w+e*v+f*u'
> 'g*u+h*p+i*w+j*v'
> 'k*v+l*o+m*w+n*u'
> 'Z*T+2*x*a+b*z+c*o'
> using
> fid=fopen('/sim/TLV1117LV_DS/x0138322/scripts/userinput.m');
>
> while(1)
> tline1 =fgetl(fid);
>
> %TL1 =sym(tline1);
> %if (tline1 == -1||''), break, end
> if isempty(tline1), break, end
>
> TL1 = sym(tline1);
>
> end
> which return the TL1=
> 'Z*T+2*x*a+b*z+c*o'
> tell me a way to get the complete file
> thank you

% I*'m not sure, but you might try replacing:
TL1 = sym(tline1);
% with:
TL1 = sym([TL1 tline1]);