See https://github.com/tamaskis/slope_field-MATLAB or “DOCUMENTATION.pdf” for additional documentation and examples. Examples can also be found in “EXAMPLES.m”.
The "slope_field" function draws the slope field of a first-order, univariate, ordinary differential equation. The function accepts a function handle for the differential equation as well as parameters defining the domain over which to plot the slope field. Additional optional parameters include the line density (to control the number of lines used to create the slope field), line color, and line width.
Tamas Kis (2021). Slope Field Generator for ODEs (slope_field) (https://github.com/tamaskis/slope_field-MATLAB/releases/tag/v2.0.2), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!