draw contour from given data

조회 수: 8 (최근 30일)
TAPAS
TAPAS 2020년 4월 11일
편집: Ameer Hamza 2020년 4월 11일
i have attached one excel file which contains 3 column long,lat,data.I want to draw a contour plot
  댓글 수: 1
darova
darova 2020년 4월 11일
Did you try something? Your desire is not enough. I want some effort

댓글을 달려면 로그인하십시오.

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 4월 11일
편집: Ameer Hamza 2020년 4월 11일
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개)

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by