Mapping toolbox functions missing in installation
22 views (last 30 days)
Show older comments
Rachel
on 11 Oct 2025 at 9:20
Moved: Walter Roberson
on 11 Oct 2025 at 17:13
Hi,
I am missing some mapping toolbox functions in R2023b, R2025a and R2025b.
Unrecognized function include 'worldGrid', 'geographicGrid', 'intrinsicToGeographic', 'geographicToDiscrete' and maybe more. I came across the issue when looking for replacement functions for the former function 'pixcenters'.
I cannot find any of these m-files anywhere in the Matlab root under either one of the three versions on any of my two computers, so I suspect that they were not included in the installation files?
The Matlab path includes the mapping toolbox and I have otherwise a fully functioning Mapping toolbox (license checkout 'MAP_Toolbox' = 1) with most other functions working properly: e.g., georefcells, readgeoraster, etc.
Does anybody experienced the same problem or knows how to fix this?
1 Comment
xingxingcui
on 11 Oct 2025 at 9:59
what's your output information using 'ver' in command window? Having see 'Mapping Toolbox'?
Accepted Answer
Steve Eddins
on 11 Oct 2025 at 11:50
These functions are implemented as methods of certain classes, such as MapCellsReference or GeographicCellsReference. As methods, they don't appear on the global search path, and you can't call them directly unless you use the correct calling syntax with the right kind of object. For example:
try
% This will error because worldGrid hasn't been called with the right
% kind of object.
worldGrid
catch e
% Show the error message.
disp(e.message)
end
But if you call it with a MapCellsReference object, it works:
% Doc example:
R = maprefcells([7000 7400],[2700 3300],[3 4]);
[X,Y] = worldGrid(R)
After the method has been called, and therefore loaded into MATLAB, the which function will know about it and show you the location of the code file:
which worldGrid
Here is another example, for one of the other functions you mentioned.
try
% This will error because worldGrid hasn't been called with the right
% kind of object.
geographicGrid
catch e
% Show the error message.
disp(e.message)
end
% Doc example
R = georefcells([0 30],[-20 20],[3 4]);
[lat,lon] = geographicGrid(R)
which geographicGrid
1 Comment
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!