matlab symbolic substitute

Jun 02 2012 Published under Mathematics

Matlab symbolic substitution

t = sym('t')
x = t^2 + t + 1
t = sym(0.5)
subs(x)

>> ans = 7/4

vpa(subs(x))
>> ans = 1.75

Comments Off

Comments are closed at this time.

Login