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!