Skip to content

Commit 3ab6dc9

Browse files
Glenn ThompsonGlenn Thompson
authored andcommitted
Fixes to correlation toolkit suggested by Kyle Brill - see issue 51
1 parent 8582f5b commit 3ab6dc9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

core/@correlation/private/dendrogramplot.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232

3333
% SWITCH X AXIS LABELS
3434
set(gca,'XDir','reverse');
35-
label = 1- str2num(get(gca,'XTickLabel'));
35+
% Fix by GT based on email by Kyle Brill, July 2016, see Issue 51
36+
%label = 1- str2num(get(gca,'XTickLabel'));
37+
label = 1- str2double(get(gca,'XTickLabel'));
3638
set(gca,'XTickLabel',label);
3739
%xlabel('distance (dissimilarlity)','FontSize',16);
3840
xlabel('inter-cluster correlation','FontSize',16);

core/@correlation/stack.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@
5050
c1 = correlation;
5151
c1 = set(c1,'WAVEFORM', get(c,'WAVEFORM') );
5252
c1 = set(c1,'TRIG', get(c,'TRIG') );
53-
if exist('index')
53+
% Fix by GT based on email from Kyle Brill, July 2016. See issue 51
54+
% if exist('index')
55+
if exist('index', 'var')
5456
c1 = subset(c1,index);
5557
end
5658

0 commit comments

Comments
 (0)