How to plot colored contour plot from x,y,z data?

I have x, y and z column (2300 by 3 matrix). say x=temp, y=field, z=susceptibility. x and y are not randomly scattered data.
x= temp =[5 50 150 180 200 220 240 250 260 265 270 272 274 275 275.5 276 277 278 279 279.5 280 280.5 281 281.5 282 284 286 288 290 295 300 310 320];
y= field =[0:4:60 65:5:120 130:10:200 250:50:500];
%vand,
z= susceptibility (Random numbers)
% x and y have repetitive values.
I finally want to plot a contour graph out of this x,y,z (temp on x, field on y and susceptibility on z). Please suggest how to proceed.

4 commentaires

Stephen23
Stephen23 le 17 Août 2018
@Ankit Labh: do the x and y values repeat? Are they actually gridded? Please upload your actual data in a .mat file by clicking the paperclip button.
Ankit Labh
Ankit Labh le 17 Août 2018
Modifié(e) : Ankit Labh le 17 Août 2018
I did not do any gridding. For one temp for each field, there is one susceptibility. then for the next temperature, for each field there is one susceptibility and so on.
data, in general, are not repetitive but few data could be repetitive.
Stephen23
Stephen23 le 17 Août 2018
"For one temp for each field, there is one susceptibility. then for the next temperature, for each field there is one susceptibility and so on"
That sounds like a grid to me. Please upload your data by clicking the paperclip button.
Ankit Labh
Ankit Labh le 17 Août 2018
@Stephen?

Connectez-vous pour commenter.

Réponses (0)

Question posée :

le 17 Août 2018

Commenté :

le 17 Août 2018

Community Treasure Hunt

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

Start Hunting!

Translated by