From: Balavelan Thanigaivelan on
>> syms a b c d e f
>> z = [a,b,c,d]
z =
[ a, b, c, d]
>> z1 = subs(z,[e,f],[c,d])
z1 =
[ a, b, e, f]

May be this has been reported before. i am trying to search backlogs andstill cant find a suitable work around for this.

Can someone help me with a work around ? or is this still a bug in subs function ?
From: Balavelan Thanigaivelan on
It seems to be a bug to me.

I am creating a toolbox in matlab for my research and I get this situation.

>> z = [a,b,c,d,1,2]
z =
[ a, b, c, d, 1, 2]
>> z1 = subs(z,e,1)
z1 =
[ a, b, c, d, e, 2]

this happens in 2009b and 2010a which I just downloaded and updated on my machine. this affects my work. can someone help me with suggestions ?
From: Balavelan Thanigaivelan on
sorry, I just read the help carefully where the switch prevents subs from trying other way.

so z1 = subs(z,[e,f],[1,2],0) solves the issue