Skip to content
Permalink
1554f6a5b2
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
15 lines (12 sloc) 479 Bytes
%% Section 2: Load all the model data together
function [AllDataMem] = LoadAllData(FileName)
MemorySaving;
%UNTITLED3 Summary of this function goes here
% Detailed explanation goes here
for idx = 1: 8
AllData(idx,:,:,:) = ncread(FileName, Contents.Variables(idx).Name);
fprintf('Loading %s\n', Contents.Variables(idx).Name); % display loading information
end
AllDataMem = whos('AllData').bytes/1000000;
fprintf('Memory used for all data: %.3f MB\n', AllDataMem)
end