Missing data in an example

6 vues (au cours des 30 derniers jours)
Clodoaldo de Souza Faria Júnior
Commenté : Star Strider le 9 Juil 2022
I'm trying to replicate the matlab example available on the page:
And I can't as I don't have the data called 'astWMMResults_Epoch_2020_decyear_2020.mat' and 'astPlotWMM.mat'
Does anyone know where I can download them?
  1 commentaire
Star Strider
Star Strider le 9 Juil 2022
You should have the files if you have the appropriate version of the Aerospace Toolbox.
NOTE — You have R2018a and the file is for the year 2020. MATLAB is good, however it is not prescient!
The code works here —
model_epoch = '2020';
decimal_year = 2020;
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
WMMFileName = 'astWMMResults_Epoch_2020_decyear_2020.mat';
load(WMMFileName);
% Read in continent land areas for plot overlay using Mapping Toolbox function, shaperead.
landAreas = shaperead('landareas.shp','UseGeoCoords',true);
% Plotting Earth's Magnetic Field Overlaid on Earth Maps
% Load plot formatting data for each of the magnetic parameters.
plotWMM = load('astPlotWMM.mat');
hX = figure;
set(hX,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 1, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
hDIP = figure;
set(hDIP,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 6, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
hF = figure;
set(hF,'Position',[0 0 827 620],'Color','white')
astPlotWMMContours( WMMResults, plotWMM, 7, landAreas, geod_lat, geod_lon, decimal_year, model_epoch)
.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Geographic Plots dans Help Center et File Exchange

Tags

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by