Skip to content
Permalink
Browse files
Update and rename compare.m to CBE.m
Code stored in function. This allows for a more logical structure for my program as well as avoids the use of repetitions as I can call the function to use the CBEoriginal variable in my compare.m. The file name was also changed to one that relates more to the code.
  • Loading branch information
mirikip committed Aug 13, 2020
1 parent 1ba3f81 commit b1c05b62aaf4fb1859607911f11d198b0d467100
Showing 1 changed file with 4 additions and 1 deletion.
@@ -1,3 +1,6 @@
%Function to concatenate and normalize Cluster Based Ensemble Data
function [CBEoriginal] = CBE()

%Load Cluster based ensemble .csv files
numOfFiles = 25;
csvfile = cell(1, numOfFiles);
@@ -20,4 +23,4 @@ CBEnew = reshape(CBEdata,[698 398 25]);
%the same scale i need to multiply the CBE values by 1.0497548e-07, then add 2.9458301e-08
CBEorig = bsxfun(@times, CBEnew, 1.0497548e-07);
CBEoriginal = bsxfun(@plus, CBEorig, 2.9458301e-08);

end

0 comments on commit b1c05b6

Please sign in to comment.