I am trying to plot data over a satellite image using the pcolor function
조회 수: 3 (최근 30일)
이전 댓글 표시
I am trying to plot data from an imported table over a satellite mage. I was instructed to use the pcolor function but receive an error code every time I run the script. I have tried adjusting the x and y array sizes as well as use the imshow function.
[lonarray, latarray] = meshgrid(xarray,yarray);
I = imshow('June 4th Upper Delaware Bay- Trial.jpg');
tbl = readtable('drifterdata.xlsx', 'Sheet', '0-4441336');
variablesByName = tbl(2:end,["Var5","Var6"]);
A = plot(tbl,"Var6", "Var5");
figure;
pcolor(lonarray,latarray, A);
shading('flat');
xlabel('Longitude');
ylabel('Latitude');
댓글 수: 0
답변 (1개)
Image Analyst
2023년 7월 17일
Have you tried displaying the image with imshow and then using text to show numbers over the image? Do you have a mock-up of what you'd like to obtain?
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 CubeSat and Satellites에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!