Matlab Sysmolic maths differential equation

  1. Hi

    is it possible to represent unknown functions eg x(t) in matlab equations ?

    eg have f = x''
    diff(f) = x'

    or have a derivative represented via differential eg dx/dt
     
  2. jcsd
  3. finally found it out for those who want to know

    >> y = sym('y(t)')

    y =

    y(t)


    >> f = diff(y,2) + diff(y,1) + y

    f =

    diff(y(t),$(t,2))+diff(y(t),t)+y(t)


    >> pretty(f)

    / 2 \
    |d | /d \
    |--- y(t)| + |-- y(t)| + y(t)
    | 2 | \dt /
    \dt /
    >>
     
Know someone interested in this topic? Share a link to this question via email, Google+, Twitter, or Facebook

Have something to add?
Similar discussions for: Matlab Sysmolic maths differential equation
Loading...