Error occurred while pulling satellite map
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
When running the program:
% 创建一个地理图
figure;
geoplot(FOG_Lat, FOG_Lon, 'bo-', 'DisplayName', 'FOG Position');
hold on;
geoplot(GPS_Lat, GPS_Lon, 'r*-', 'DisplayName', 'GPS Position');
geobasemap('satellite');
% 设置地理坐标轴的标签
ax = gca;
ax.LatitudeLabel.String = 'Latitude (°)';
ax.LongitudeLabel.String = 'Longitude (°)';
% 标识FOG轨迹的起始点(绿色圆圈)和终点(绿色方形)
geoscatter(FOG_Lat(1), FOG_Lon(1), 100, 'go', 'filled', 'DisplayName', 'FOG Start');
geoscatter(FOG_Lat(end), FOG_Lon(end), 100, 'gd', 'filled', 'DisplayName', 'FOG End');
% 标识GPS轨迹的起始点(蓝色五角星)和终点(蓝色菱形)
geoscatter(GPS_Lat(1), GPS_Lon(1), 100, 'yo', 'filled', 'DisplayName', 'GPS Start');
geoscatter(GPS_Lat(end), GPS_Lon(end), 100, 'yd', 'filled', 'DisplayName', 'GPS End');
% 设置图例和标题
legend('FOG Position', 'GPS Position', 'FOG Start', 'FOG End', 'GPS Start', 'GPS End', 'Location', 'best');
title('FOG and GPS Position Trajectory');
% 添加网格
grid on;
The following functions always encounter errors:
geobasemap('satellite');
Always stop at the following position when paused:HTTPconnector.m
function contentType = getConnectionContentType(obj)
% Get the content type from the connection. Return unknown if any
% error occurs. Empty may be returned if content type cannot be
% determined. Invoking this function causes content to be
% downloaded from the server.
try
contentType = obj.Connection.ContentType;
catch e
throwAsCaller(e)
end
if isempty(contentType)
% Some servers may not have the mime types setup for
% spreadsheet data. Check the URL extension to see if a
% match is found.
tableExtensions = {'.xls' '.xlsx' '.xlsb' '.xlsm' '.xltm' '.xltx' '.ods'};
url = obj.URL;
[~,~,ext] = fileparts(url);
if any(strcmpi(ext, tableExtensions))
contentType = 'spreadsheet';
end
end
end
My computer's network connection is correct, when I replace the function with
geobasemap('darkwater');
The program is running normally
Is this due to my local settings or a problem with Matlab itself?
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre CubeSat and Satellites en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!