Discover MakerZone

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

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Computing for a particular numerical value

Asked by manish sharma on 10 Aug 2012

Hi,

After using a solve command I can get the result as:

x =
(5941415241525099*R)/2251799813685248000 + 250

Now after second solve command, I can calculate the value of R as:

R =
75800

Now I want to compute x for this particular value of R. (If I am typing just "x" it displays the answer in terms of "R" only).

Any kind of help in this matter will be appreciated.

Thanks!

0 Comments

manish sharma

Tags

Products

No products are associated with this question.

1 Answer

Answer by Matt Fig on 10 Aug 2012
Edited by Matt Fig on 10 Aug 2012
Accepted answer

Use the SUBS command.

syms a x
s = solve(x^3 + a*x + 1)
a = 5;
subs(s)

0 Comments

Matt Fig

Contact us