draw contour from given data
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
TAPAS
am 11 Apr. 2020
Bearbeitet: Ameer Hamza
am 11 Apr. 2020
i have attached one excel file which contains 3 column long,lat,data.I want to draw a contour plot
1 Kommentar
Akzeptierte Antwort
Ameer Hamza
am 11 Apr. 2020
Bearbeitet: Ameer Hamza
am 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.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!