Borrar filtros
Borrar filtros

Creating a 2D temperature plot

5 visualizaciones (últimos 30 días)
Shawn Honaryar
Shawn Honaryar el 17 de En. de 2020
Respondida: darova el 17 de En. de 2020
I have an array with 16416 x-coordinates, another array with 16416 y-coordinates, and a third array with corresponding temperature values at each of the x and y coordinate pairs. Each array is the same length.
For example, x = [0.22400, 0.27570, 0.32790,...], y = [-0.0097810, -0.012040, -0.014320,...], temp = [660700, 445800, 443500,...].
I would like to make a plot colored according to the temperature at each point, similar to this one:
I cannot seem to find an easy way to interpolate the data. Any suggestions? Thanks so much.

Respuestas (1)

darova
darova el 17 de En. de 2020
Use griddata. It's the easiest way

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by