I am trying to plot data over a satellite image using the pcolor function

3 views (last 30 days)
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);
Unrecognized function or variable 'xarray'.
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');

Answers (1)

Image Analyst
Image Analyst on 17 Jul 2023
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:

Categories

Find more on CubeSat and Satellites in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!