From b1c05b62aaf4fb1859607911f11d198b0d467100 Mon Sep 17 00:00:00 2001 From: "Premobowei Miriki (mirikip)" Date: Thu, 13 Aug 2020 01:10:39 +0100 Subject: [PATCH] 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. --- compare.m => CBE.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) rename compare.m => CBE.m (85%) diff --git a/compare.m b/CBE.m similarity index 85% rename from compare.m rename to CBE.m index 82de023..4367f63 100644 --- a/compare.m +++ b/CBE.m @@ -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