dfield6 errors with Matlab 2015

8 vues (au cours des 30 derniers jours)
Drake Thege
Drake Thege le 11 Fév 2016
Can you help me determine why the errors occur when I use dfield6 with 2015? The graph does not appear, and additional errors occur.
Warning: The DrawMode property will be removed in a future release. Use the SortMethod property instead. > In dfield6 (line 1126) Conversion to logical from matlab.ui.control.UIControl is not possible.
Error in dfield6 (line 1541) if notice
Error in dfield6 (line 1519) dfield6('dirfield',dfdisp);
Error while evaluating UIControl Callback
Conversion to logical from matlab.ui.control.UIControl is not possible.
Error in dfield6 (line 1807) if notice
Error in dfield6 (line 1708) dfield6('solution',initpt,disph);
Error while evaluating Figure WindowButtonDownFcn

Réponses (3)

sam0037
sam0037 le 16 Fév 2016
Hi,
I tried debugging the attached code DFIELD6.M and could reproduce the above mentioned errors. If you replace all if notice in the code with if ishandle(notice), the code should work. I made these changes and is working at my end.
NOTE: ISHANDLE function checks for valid graphics or Java object handle.
Further to remove the warning, use the SORTMETHOD property instead of DRAWMETHOD nn dfield6 (line 1126). For more information on SORTMETHOD property refer to the following link:
Thanks, Shamim

George Williams
George Williams le 17 Fév 2017
Gives a good updated version for Matlab R2016b, may work for 2015 version: https://uk.mathworks.com/matlabcentral/fileexchange/61636-pplane?s_tid=srchtitle%2520

ahmed
ahmed le 20 Juin 2016
You are using Matlab 2015, so, you will have to use the dfield8.m, you will find two editions of dfield8.m in this link (one for Matlab 2014 and before, the other is for Matlab 2015 and later): you need to download the later one.
In addition: please note that there is one version of pplane8.m found in this link, and it works for Matlab 2015 and later :) finally (if i could), i would advice you to use the java versions (also found in the link) which are less headache for your pc.
  2 commentaires
Jonathan Mitchell
Jonathan Mitchell le 22 Juil 2016
The pplane8.m for MATLAB 2015 downloaded from https://web.njit.edu/~yyoung/M222Spring2016/M222Spring16.html is not executing properly for MATLAB 2016a. Do you know of any revisions that need to take place?
ahmed
ahmed le 24 Sep 2016
I am using MATLAB 2016a too, and it works for me very well

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Performance dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by