How to use colormap?

I have do a color map for latitude, longitude and arsenic concentration data. Please help me in this regard. I have 2430 data for each variable

Answers (1)

KSSV
KSSV on 19 Aug 2016
use surf(lon,lat,data) where lon is your longitude matrix/ array, lat is latitude matrix/array and data is your arsenic concentration matrix.
Eg:
[X,Y,Z] = peaks(25);
surf(X,Y,Z);
colorbar

3 Comments

Thanks! I have imported the excel sheet and created a .mat file which contains three variables(lat,long,conc) each 2429x1. But when i am using surf(lat,long,conc), error comes Z must be a matrix, not a scalar or vector. plz help in this regard.
KSSV
KSSV on 19 Aug 2016
I already mentioned that ....conc must be a a matrix. Attach excel here..
Please find the attached file..
Thanks

Sign in to comment.

Categories

Tags

Asked:

on 19 Aug 2016

Commented:

on 20 Aug 2016

Community Treasure Hunt

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

Start Hunting!