- #1
Api
- 3
- 0
Hello there,
lets say i have a harmonic oscillator equation d^2x/dt^2 = -w^2 x = -Asin(wt)
w=frequency, A=amplitude..how can i plot this equation for w^2=1, x(0)=1?
and what if the equation contains random number d^2x/dt^2 = -w^2x+Bn, n=gaussian random number with mean value equal to zero. Under the same condition, how do i plot this for 1 trajectory solution (1 time only) and step=0.1?
I m very new to mathlab and i really need to learn these basics to solve the real problem in my project...any help will be very much appreciated..thanks.
lets say i have a harmonic oscillator equation d^2x/dt^2 = -w^2 x = -Asin(wt)
w=frequency, A=amplitude..how can i plot this equation for w^2=1, x(0)=1?
and what if the equation contains random number d^2x/dt^2 = -w^2x+Bn, n=gaussian random number with mean value equal to zero. Under the same condition, how do i plot this for 1 trajectory solution (1 time only) and step=0.1?
I m very new to mathlab and i really need to learn these basics to solve the real problem in my project...any help will be very much appreciated..thanks.