From 711db276a1960fab5c6bd8653a77de0ce05e0fe0 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Mon, 17 Sep 2018 09:10:45 -0600 Subject: [PATCH] Display "normal" definitions to user --- MATLAB/beefblup.m | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/MATLAB/beefblup.m b/MATLAB/beefblup.m index e1bbedb..896cb07 100644 --- a/MATLAB/beefblup.m +++ b/MATLAB/beefblup.m @@ -46,7 +46,8 @@ end for i = 7:length(headers) if length(uniquecell(data(:,i))) <= 1 colname = headers{i}; - disp(['Column "' colname '" does not have any unique animals and will be removed from this analysis.']); + disp(['Column "' colname '" does not have any unique animals and will be removed']) + disp('from this analysis'); colstodelete = [colstodelete i]; end end @@ -74,7 +75,19 @@ for i = 6:length(headers) for j = numanimals:-1:1 if not(cellfun(@isempty, data(j,i))) normal(i - 5) = data(j,i); - continue + break end end -end \ No newline at end of file +end + +% Print the results of the "normal" definition +disp(' ') +disp('For the purposes of this analysis, a "normal" animal will be defined') +disp('by the following traits:') +for i = 6:length(headers) + disp([headers{i} ': ' normal{i-5}]) +end +disp(' ') +disp('If no animal matching this description exists, the results may appear') +disp('outlandish, but are still as correct as the accuracy suggests') +disp(' ') \ No newline at end of file