draw contour from given data

1 visualizzazione (ultimi 30 giorni)
TAPAS
TAPAS il 11 Apr 2020
Modificato: Ameer Hamza il 11 Apr 2020
i have attached one excel file which contains 3 column long,lat,data.I want to draw a contour plot
  1 Commento
darova
darova il 11 Apr 2020
Did you try something? Your desire is not enough. I want some effort

Accedi per commentare.

Risposta accettata

Ameer Hamza
Ameer Hamza il 11 Apr 2020
Modificato: Ameer Hamza il 11 Apr 2020
Something like this
data = readmatrix('final.xlsx');
x = data(:,1);
y = data(:,2);
v = data(:,3);
[X,Y] = meshgrid(unique(x), unique(y));
V = reshape(v, size(X));
contour(X,Y,V);
Data values at a few points are messing up the colors of all the contour lines. You mat consider filtering values in matrix v in the above code.

Più risposte (0)

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by