Hi i am new to matlab and I wanted to plot the temperature in x,y as shown above. I have set of data in excel file.

I've tried using surf plot but i keep getting errors "Z must be a matrix, not a scalar or vector."

Skip to content# MATLAB: How to plot a temperature in xy axis (2D temperature contour)

plot

Hi i am new to matlab and I wanted to plot the temperature in x,y as shown above. I have set of data in excel file.

I've tried using surf plot but i keep getting errors "Z must be a matrix, not a scalar or vector."

## Best Answer