Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

Walter Roberson
Walter Roberson el 3 de Jun. de 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.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by