MATLAB Answers

Setting an equation equal to another variable (rearranging) in 2012b

4 views (last 30 days)
Zayed Makboul
Zayed Makboul on 16 Sep 2019
Commented: Zayed Makboul on 16 Sep 2019
I took an integral in matlab and this was the output:
s =
3*5^(1/2)*t
or s = 3.
I want to rearage this equation in terms of .
I tried:
t = solve(s,t)
but the output is:
t1 =
0
I would greatly appreciate any insight!
p.s. I do have symbolic toolbox and have set:
syms t s t1

  0 Comments

Sign in to comment.

Accepted Answer

Stephan
Stephan on 16 Sep 2019
Edited: Stephan on 16 Sep 2019
syms s t
eq = s == 3*5^(1/2)*t
sol_t = solve(eq,t)
Beginning from 2017a you can use isolate.

  1 Comment

Sign in to comment.

More Answers (0)

Products


Release

R2012b

Community Treasure Hunt

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

Start Hunting!

Translated by