I'm designing a application for my project. I have used following code to geoplot a datafile given below. I just want to take screenshot or export the geoplot into an image file.
latitude = data.Var9; longitude = data.Var10; gx = geoaxes(app.GEOGRAPHICALMAPTab); %GEOGRAPHICALMAPTab is a tab used as a geoplot container(where Geoplot is shown)
geoplot(gx,latitude,longitude,'LineWidth',2,'Color','green'); text(gx,latitude(1,1),longitude(1,1),'START',"FontName",'Palatino','FontSize',18) text(gx,latitude(end,1),longitude(end,1),'END','FontName','Palatino','FontSize',18) geobasemap streets
I have already used functions like getframe,copyUIAxes etc but none is working. Can anyone please help me ??
Best Answer