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

6 ビュー (過去 30 日間)
Kelly
Kelly 2023 年 7 月 17 日
回答済み: Image Analyst 2023 年 7 月 17 日
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');

回答 (1 件)

Image Analyst
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:

カテゴリ

Help Center および File ExchangeMapping Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by