Is it possible to solve a differential equation without ODE functions?

If dy/dt=-ky...(1) can be written as y_n = y_(n-1)-ky*Δt......(2), where dy= y_n - y_(n-1) How to solve equation (2) using a For loop? How to take Δt almost 0?

Answers (0)

This question is closed.

Products

Release

R2017b

Asked:

on 1 Nov 2018

Closed:

on 1 Nov 2018

Community Treasure Hunt

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

Start Hunting!