Saving geotiff using geotiffwrite

Hello,
I produced a new variable (mapfinal) in the workspace by subtracting one geotiff from another (they are images of cities).
I want to save this as a geotiff using the function geotiffwrite.
geotiffwrite(mapfinal, info.SpatialRef, ...
'GeoKeyDirectoryTag', info.GeoTIFFTags.GeoKeyDirectoryTag);
How should I write the code?
Thank you!

Tags

Asked:

on 18 Nov 2019

Answered:

on 18 Nov 2019

Community Treasure Hunt

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

Start Hunting!