Doubt in solving ODE45
2 views (last 30 days)
I am trying to solve a differential equation for parameter 'dis' for infinite length of beam which is function of time and space in ode45.I am doubtful about how to consider infinite 'L' in the analysis, as my time is dependent upon v (velocity) and L (length).
I tried solving ode45 as usual taking arbitary L=20 but want to plot 'dis' wrt to space.I need help in plotting.My code has been attached herein.
Star Strider on 20 Sep 2021
Edited: Star Strider on 20 Sep 2021
It seems that ‘dis’ does not appear anywhere.
plot(t1, y1(:,1), 'r', 'LineWidth',2)
function f= diffeqn11(t,y)
EDIT — (20 Sep 2021 at 19:24)
If you have ‘y’ as a function of space and time, this is a partial differential equation.
Express appropriately as a function of both space and time, and then solve it with the pdepe function, or the partial Differential Equation Toolbox functions.