How to plot a temperature in xy axis (2D temperature contour)?
Show older comments


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."
2 Comments
Rik
on 2 Dec 2019
Surf will plot a surface where the complete grid of combinations of x and y are known. Is that the case for you? If not, you can probably interpolate your data to a complete grid.
Note that usually the z value determines the color, so if you have more than one z for the same x y, you should explain what exactly you expect to be your output. Also, attaching your data in a mat file may be helpful.
LEONG SING YEW
on 2 Dec 2019
Accepted Answer
More Answers (1)
Vidya shree V
on 24 Sep 2020
0 votes
I have x , y nad T values how to plot contour graphs in matlab
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!