Read the data in Matlab
Hi, I am trying to read the population density data in 2005 and 2015 in Matlab. I am using the following codes.
[pop, R] = geotiffread('gpw-v4-population-density_2005.tif');
figure
mapshow(pop, R);
The reference R looks normal, but the density matrix pop has huge negative numbers in each entry. I also tried to use Mathematica to read the file, and it also does not work. Could you provide us simple examples on how to access your tif file? Thanks!
9
votes
![](https://secure.gravatar.com/avatar/9f265d31d5d16177b0579a9dad5cd8e5?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)