SlopeField

Creates a slope-field for a first-order ODE

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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