How to plot a temperature colored map
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Gab D
el 12 de Abr. de 2019
Respondida: sheshu kumar
el 22 de Oct. de 2019
Hi everybody,
I have a matrix A=[x,y,temperature] with a lot of rows in each column. I would like to have a continuous colormap (preferably with the equipotential) of the temperature assign to each points. I am able to have the scatter with color, but it's difficult to see the evolution in space (see picture below). I have tried with surf, with contourf, but nothing seems to work (at least when I try with the other example I saw). ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/213474/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/213474/image.jpeg)
3 comentarios
Respuesta aceptada
KSSV
el 12 de Abr. de 2019
load('A.mat')
x = A(:,1) ;
y = A(:,2) ;
z = A(:,3) ;
nx = length(unique(x)) ;
ny = length(unique(y)) ;
X = reshape(x,nx,ny) ;
Y = reshape(y,nx,ny) ;
Z = reshape(z,nx,ny) ;
pcolor(X,Y,Z) ;
Más respuestas (1)
sheshu kumar
el 22 de Oct. de 2019
load('A.mat')
x = A(:,1) ;
y = A(:,2) ;
z = A(:,3) ;
nx = length(unique(x)) ;
ny = length(unique(y)) ;
X = reshape(x,nx,ny) ;
Y = reshape(y,nx,ny) ;
Z = reshape(z,nx,ny) ;
pcolor(X,Y,Z) ;
0 comentarios
Ver también
Categorías
Más información sobre Geographic Plots en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!