MATLAB: Substuting variable in a matrix

variable sustituting

I am trying to substitute the variable s in my B matrix by a number. However it doesnt work.

Best Answer

That could happen if you had assigned a value to s before you did the subs(). Try
subs(B, sym('s'), 1/sqrt(sym(3)) )