From: Abhishek on
"Oleg Komarov" <oleg.komarovRemove.this(a)hotmail.it> wrote in message <i2u2at$r31$1(a)fred.mathworks.com>...
> "Abhishek " <abhi14jan(a)yahoo.com> wrote in message <i2u1rt$rlc$1(a)fred.mathworks.com>...
> > Hi
> > I am reading the file which contains
> > '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'
> > '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 the code
> > syms A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z S1 TL1
> > fid=fopen('/sim/TLV1117LV_DS/x0138322/scripts/userinput.m');
> > i=-1;
> > while(1)
> > tline1 =fgetl(fid);
> > if isempty(tline1), break, end
> > TL1 = [TL1 sym(tline1)];
> ...
> > but I dont want ( ' ) before z and afterT because they create error in rest of the code
> > Please tell me a solution to this;;;;;;
>
> Substitute sym(tline1) with sym(tline1(tline1~=char(39)))
>
> O.k i have substituted and it has worked ...
One more help ;;
I am using after this the following code
for k=1:i
eq(k)=TL1(k+i+2);
end
eq1=num2cell(eq);
TTL1=num2cell(TL1);
S=solve(eq1{:},TTL1{3:i+2});
Vout=S.x;
Vin=z;
H=Vout/Vin;
which works but i want to use
Vout=S.TTL1{3};
Vin=S.TTL1{2};
H=Vout/Vin;
as it is a part of automation....But it gives error as
>S.TTL1{3}
??? Reference to non-existent field 'TTL1'.
Please tell me the solution....
From: Walter Roberson on
Abhishek wrote:

>> > syms A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e
>> f g h i j k l m n o p q r s t u v w x y z S1 TL1 >

> for k=1:i
> eq(k)=TL1(k+i+2);
> end
> eq1=num2cell(eq);
> TTL1=num2cell(TL1);
> S=solve(eq1{:},TTL1{3:i+2});
> Vout=S.x;
> Vin=z;
> H=Vout/Vin;
> which works but i want to use Vout=S.TTL1{3};
> Vin=S.TTL1{2};
> H=Vout/Vin;
> as it is a part of automation....But it gives error as
> >S.TTL1{3}
> ??? Reference to non-existent field 'TTL1'.

S.(TTL1{3})