Effacer les filtres
Effacer les filtres

Creating an Animation of the World from Discrete Blocks

2 vues (au cours des 30 derniers jours)
Stuart-James Burney
Stuart-James Burney le 17 Déc 2019
Consider a map of the world. This map has been separated into 108 blocks, and I have been given data on each block. I thought if I could create an animation for each block, I could then merge all 108 animations to form an animation of the world. The following script appears to create an animation for a single block.
ncfile2 = 'mhw_severity.pc90.0to30.30to50.1981.2019.nc' ; % nc file
lat=ncread(ncfile2,'lat');
lon=ncread(ncfile2,'lon');
ssta=ncread(ncfile2,'ssta');
for i=1:1000
imagesc(lat,lon,ssta(:,:,i))
i
pause(0.001)
end
Is there a more efficient way that this can be achieved?

Réponses (0)

Catégories

En savoir plus sur Simulation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by