COLEA : Warning message when using MATLAB R2015a
6 views (last 30 days)
Show older comments
Hello,
I get the following warning message whenever I type "colea" knowing that I get to see the file dialog window afterward :
_ _Warning: The EraseMode property is no longer supported and will error in a future release.
Use the ANIMATEDLINE function for animating lines and points instead of EraseMode 'none'.
Removing instances of EraseMode set to 'normal', 'xor', and 'background' has minimal
impact.
> In colea (line 363)
Warning: The EraseMode property is no longer supported and will error in a future release.
Use the ANIMATEDLINE function for animating lines and points instead of EraseMode 'none'.
Removing instances of EraseMode set to 'normal', 'xor', and 'background' has minimal
impact.
> In colea (line 366)__
The corresponding code lines are :
%-----------Initialize handles to cursor lines ------------
np=3; Ylim=get(gca,'YLim');
hl=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','-',...
'color',[0 0 0],'Erasemode','xor');
hr=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','--',...
'color',[0 0 0],'Erasemode','xor');
doit=0;
I don't know how to fix it. Kindly advise.
Thanks
Yaseen
0 Comments
Answers (1)
Walter Roberson
on 14 Sep 2015
4 Comments
Walter Roberson
on 21 Mar 2016
I mean that you should go into the code, and each place that you find
'Erasemode', 'xor'
in the code, that you should delete those words. For example the lines
hl=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','-',...
'color',[0 0 0],'Erasemode','xor');
should be changed to
hl=line('Xdata',[np np],'Ydata',Ylim,'Linestyle','-',...
'color',[0 0 0]);
See Also
Categories
Find more on Simulation, Tuning, and Visualization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!