File Exchange

image thumbnail

dfield8

version 8.8 (29.5 KB) by Giampiero Campa
Interactive app to study a given first order ODE

63 Downloads

Updated 18 Oct 2020

View Version History

View License

This is a nice interactive tool to study first order ODEs, which was originally created by John Polking at Rice University (together with other tools such as pplane and odesolve).

The original versions (see also here https://math.rice.edu/~polking/odesoft/solver.html for more information) only work up to MATLAB versions R2014a.

A great version of pplane8 which works in any MATLAB version can be found here: https://www.mathworks.com/matlabcentral/fileexchange/61636-pplane

Note that at the time of writing there are a couple of versions on file exchange (both called dfield9) from Gerardo Garcia (https://www.mathworks.com/matlabcentral/fileexchange/64437) and Iourii Kouznetsov (https://www.mathworks.com/matlabcentral/fileexchange/65886), however the former gives warnings for versions 2015a and later, and errors out for versions 2017b and later. The latter works without errors or warnings, but the text is disproportionally larger and out of place. Both versions have the toolbar on in the setup window and tend to place the display window a little out of reach in the upper right part of the screen sometimes.

This version of dfield8 is the closest to the original in look and feel, but it is faster, and it works for any version from R2014b on.

Cite As

Giampiero Campa (2020). dfield8 (https://www.mathworks.com/matlabcentral/fileexchange/71408-dfield8), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (7)

Tommy Chang

Thank You so much for updating it. It will be very useful for my studies!

Giampiero Campa

The new version also fixes the problem with the file not found in the temporary folder.

Jose Mejia

Thanks a lot!

Duncan Mcpherson

I'm getting the following error. Any idea how to fix it?:

>> dfield8
Error using feval
Unrecognized function or variable 'dftp1383'.

Error in dfield8 (line 1600)
Ww = feval(dfcn,Tt',Xx');

Error in dfield8 (line 1520)
dfield8('dirfield',dfdisp);

Error while evaluating UIControl Callback.

Tommy Chang

I am getting the following command window output
I got it to run once or twice but can't figure out what went wrong.
Does anyone know what's going on?

Thanks

>> dfield8
The following files
C:\Users\thomm\AppData\Local\Temp\dftp3703.m
may have been created by an older version of DFIELD.
If so they should be deleted.

Error using feval
Unrecognized function or variable 'dftp5281'.

Error in dfield8 (line 1600)
Ww = feval(dfcn,Tt',Xx');

Error in dfield8 (line 1520)
dfield8('dirfield',dfdisp);

Error while evaluating UIControl Callback.

Giampiero Campa

Gabriele, you can find pplane in the second link, here: https://www.mathworks.com/matlabcentral/fileexchange/61636-pplane
It works fine. If you need it go faster just comment out the "drawnow" instructions in the file.

Gabriele

Thanks a lot!
If your time allows, it would be great to have this porting also for pplane, as it used to be a very valuable tool for exploring systems' dynamics!

MATLAB Release Compatibility
Created with R2019a
Compatible with R2014b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!