Surface plot based on cell center values

I have an array of data corresponding to the values at the center of the cells in the grid. Is there a way to plot the data on a contour or surface plot which is based on the values at the cell center, rather than at the intersection of grid lines? Thanks

 Risposta accettata

Mohammad Abouali
Mohammad Abouali il 7 Apr 2015
Modificato: Mohammad Abouali il 7 Apr 2015
Data=rand(10,10);
imagesc(s);
check imagesc() for detail description of the function.

2 Commenti

Thanks. That is exactly what I wanted.
you are welcome

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by