Why do I receive this warning when I display grid on the axis?

3 vues (au cours des 30 derniers jours)
sadel
sadel le 3 Juin 2011
Hi!!! Well, I execute this code on a checkbox and I receive this warning. Why?
checkboxStatus = get(handles.gridc,'Value');
if(checkboxStatus)
Grid On
else
Grid Off
end
guidata(hObject, handles);
Warning: Could not find an exact (case-sensitive) match for 'Grid'.
C:\Program Files\MATLAB\R2011a\toolbox\matlab\graph2d\grid.m is a
case-insensitive match and will be used instead.
You can improve the performance of your code by using exact
name matches and we therefore recommend that you update your
usage accordingly. Alternatively, you can disable this warning using
warning('off','MATLAB:dispatcher:InexactCaseMatch').
This warning will become an error in future releases.

Réponse acceptée

Walter Roberson
Walter Roberson le 3 Juin 2011
There is no MATLAB command "Grid On". The MATLAB command is "grid on". See the reference documentation and note that MATLAB is case sensitive for function names.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings 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