Missing data in an example

2 visualizzazioni (ultimi 30 giorni)
Clodoaldo de Souza Faria Júnior
Commentato: Star Strider il 9 Lug 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 Commento
Star Strider
Star Strider il 9 Lug 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)
.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by