(adsbygoogle = window.adsbygoogle || []).push({}); Help me with coupled ode45 equations in matlab plz

I have no idea to turn these into matlab code, and here is the porblem:

y(1)' = y(2)

y(2)' = - (r+re)/(L+le)*y(2) - y(1)/c*(l+le)

y(3)' = y(4)

y(4)' = -c*y(4).^2 /m+L*y(2).^2/(2*m)

where

re = ro+Rpr*z+Lpr*z'

le = Lo+Lpr*z

the rest parameters are given numbers, and z is the changing position, the variable.

the given task is like this, two differential equations:

(L+le)*q''+(r+re)*q'+q/c=0

z''+c*(z')^2/m=Lpr*(q').^2/(2*m)

I appreciate your help!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Help me with coupled ode45 equations in matlab

Can you offer guidance or do you also need help?

Draft saved
Draft deleted

Loading...

Similar Threads - Help coupled ode45 | Date |
---|---|

Matlab MATLab: Not enough inputs for nlinfit | Nov 16, 2017 |

Matlab Help needed to fix a matlab code | Nov 8, 2017 |

Solving coupled ode in matlab help | May 3, 2012 |

Excel - help with eulers method on coupled equations | Aug 6, 2008 |

Help me solving these coupled ode's in matlab | Sep 14, 2005 |

**Physics Forums - The Fusion of Science and Community**