MATLAB Answers

0

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

Asked by Zayed Makboul on 16 Sep 2019 at 8:31
Latest activity Commented on by Zayed Makboul on 16 Sep 2019 at 10:51
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.

Products


Release

R2012b

1 Answer

Answer by Stephan
on 16 Sep 2019 at 9:12
Edited by Stephan
on 16 Sep 2019 at 9:15
 Accepted Answer

syms s t
eq = s == 3*5^(1/2)*t
sol_t = solve(eq,t)
Beginning from 2017a you can use isolate.

  1 Comment

Ingenious!
Thank you, it worked, I hope you have a great day!! :)

Sign in to comment.