MATLAB: GeographicToIntrinsic is not installed

Mapping Toolbox

I don't appear to have the function geographicToInstrinsic, despite having the Mapping Toolbox installed:
> ls /Applications/MATLAB_R2019b.app/toolbox/map/*/geographicToInstrinsic.m
ls: /Applications/MATLAB_R2019b.app/toolbox/map/*/geographicToInstrinsic.m: No such file or directory
Other mapping toolbox functions are installed. For example:
> ls /Applications/MATLAB_R2019b.app/toolbox/map/*/geod2iso.m
/Applications/MATLAB_R2019b.app/toolbox/map/map/geod2iso.m
I also have the same problem on another machine that has MATLAB 2018A.
Should be in both since the docs say "Introduced in R2013b".
Confusing!

Best Answer

Hi,
You can find the implementation of 'geographicToIntrinsic' in the following file: matlab\toolbox\map\map\+map\+rasterref\GeographicRasterReference.m
'geographicToIntrinsic' expects it's first argument to be a GeographicCellsReference. Only then you will be able to call this method.
You can run this snippet:
R = georefcells();
geographicToIntrinsic(R);
This will give you an error, as it can locate the function now under GeographicRasterReference file.
Hope this helps!
Related Question