Solve an ODE: equation A - MATLAB Cody - MATLAB Central

Problem 51745. Solve an ODE: equation A

Difficulty:Rate
Write a function to solve the following ordinary differential equation:
y"-xy = 0
with y(x0) = y0 and y(x1) = y1. The function should return the values of y at the specified values of x. One application of this equation involves the propagation of internal gravity waves in a fluid with variable density gradient.

Solution Stats

53.33% Correct | 46.67% Incorrect
Last Solution submitted on Dec 06, 2023

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
18
6

Problem Recent Solvers7

Suggested Problems

More from this Author291

Community Treasure Hunt

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

Start Hunting!
Go to top of page