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

3 visualizaciones (últimos 30 días)
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');

Respuestas (1)

Image Analyst
Image Analyst el 17 de Jul. de 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:

Categorías

Más información sobre CubeSat and Satellites en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by