gistlib
other matlab categories
differential-equation code snippets in matlab
reate a function that solves the bvp d2y/dt2 + dy/dt = 0, y(0) = 0 and y(pi) = 6 for an arbitrary number of points nt. in matlab
represent the following differential equation as a function: d2y(t)/dt2 + 1000*dy(t)/dt + 1000000*y(t) = 1000000*x(t) in matlab assuming x(t) is a step function in matlab
write a function to represent the system in the form of a differential equation, and solve it with each set of values using the ode45 function in matlab
y(t) = ce^(−t); c = 10. plot the solution y(t) vs. t in the range t ∈ [0, 5] and with a discretization step ∆t = 0.1. hint: t = 0:0.1:5. in matlab
gistlib
by LogSnag