how do I solve for a dependent variable then display that answer?

I have a sixth order linear equation that I need to find the dependent variable V. Below is what I have. I THINK i have it calculation V, but I can't get it to display V. Please help!
format short e; D1=2.5928000000E+01; D2=-7.6029610000E-01; D3=4.6377910000E-02; D4=-2.1653940000E-03; D5=6.0481440000E-05; D6=-7.2934220000E-07; DC=100;
syms V; vpasolve((V*D1)+(D2*V.^2)+(D3*V.^3)+(D4*V.^4)+(D5*V.^5)+(D6*V.^6)-DC==0,V);

 채택된 답변

Mischa Kim
Mischa Kim 2014년 3월 8일
편집: Mischa Kim 2014년 3월 8일
Ryan, simply remove the semi-colon after the vpasolve command
vpasolve((V*D1)+(D2*V.^2)+(D3*V.^3)+(D4*V.^4)+(D5*V.^5)+(D6*V.^6)-DC==0,V)
If you do
Vsol = vpasolve((V*D1)+(D2*V.^2)+(D3*V.^3)+(D4*V.^4)+(D5*V.^5)+(D6*V.^6)-DC==0,V)
the solutions for V are saved in the variable Vsol, e.g., to be used later on in your code.

추가 답변 (0개)

카테고리

질문:

2014년 3월 7일

편집:

2014년 3월 8일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by