Asked by Redwood
on 16 May 2013

Dear Matlab experts,

I would like to get the b value in Matlab, but I got nothing in Matlab. I attached my coding below. Please let me know how to get the b value.

syms b G G1 M1 M2 M3 P1 P2 P3 b = 0:.0001:10; Out=solve(' G1 == G*(P1*exp(-b*M1/P1)/( P1*exp(-b*M1/P1)+ P2*exp(-b*M2/P2) + P3*exp(-b*M3/P3)))', b) G = [7340, 7194]; G1 = [4516.881, 5002.953]; M1 = [5222.328, 6009.419]; M2 = [3264.034, 2632.621]; M3 = [1264.034, 1632.621]; P1 = [3000, 3025]; P2 = [10000, 10051]; P3 = [5000, 5051]; Out=subs(Out)

Thank you very much in advance.

Sincerely,

Redwood

*No products are associated with this question.*

Answer by Walter Roberson
on 16 May 2013

Use

syms b

instead of assigning a numeric value to b.

Answer by Redwood
on 16 May 2013

Dear Walter,

Thank you very much for your help.

I already used syms b.

But I did not get anything in Matlab.

Sincerely yours,

Redwood

Walter Roberson
on 16 May 2013

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 0 Comments