Why do I receive this warning when I display grid on the axis?
3 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
Walter Roberson
on 3 Jun 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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Environment and Settings 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!