SlopeField

Creates a slope-field for a first-order ODE
1.3K Downloads
Updated 15 May 2017

View License

Given the first-order ordinary differential equation y' = f(x, y(x)), this program will sketch the slope (directional) field for the equation, which describes the behavior of the solutions of the ODE.

Cite As

CeruleanNemo (2026). SlopeField (https://www.mathworks.com/matlabcentral/fileexchange/62541-slopefield), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.2.0.0

This update gives a minor adjustment of the line-segment lengths for higher-magnitude slopes. A for-loop is replaced with a vectorized calculation. The figure axes are now based on the computational domain.

1.1.0.0

.

1.0.0.0