MATLAB: Solving equation with symbolic vector variable

symbolic equation

I want to solve an equation of the form: V/(A-V)=B where A and B are known vectors and V is the symbolic vector variable I want to solve for. I created V by >>V=sym('V',[n 1]); and solved the equation by using 'solve' but in the output I get only the 'names' of the elements – V1, V2, V3, … How do I get the values of V1, V2,…? Any help is much appreciated.

Best Answer

V = B .* A ./ (B + 1);
Related Question