Skip to content

Commit

Permalink
Update BoxplotPsiHorizontal.m
Browse files Browse the repository at this point in the history
Minor bug in BoxplotPsiHorizontal.m corrected (reading columns of name files)
  • Loading branch information
cchandre committed May 8, 2021
1 parent 4eedde9 commit d1445bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AdditionalFiles/BoxplotPsiHorizontal.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function BoxplotPsiHorizontal
%%
%% Last modified by Cristel Chandre (April 8, 2021)
%% Last modified by Cristel Chandre (May 8, 2021)
%% Comments? cristel.chandre@univ-amu.fr
%%

Expand All @@ -18,7 +18,9 @@
[filename, path] = uigetfile('*.xlsx');
T = readtable([path filename]);
X = table2array(T(:, 2:2:end));
Nc = eraseBetween(table2array(T(:, 1:2:end)), 1, 'cell', 'Boundaries', 'inclusive');
name_fics = table2cell(T(:, 1:2:end));
name_fics = name_fics(cellfun('isclass', name_fics, 'char'));
Nc = eraseBetween(name_fics, 1, 'cell', 'Boundaries', 'inclusive');
Nc = str2double(Nc);
nbr_cells = length(unique(Nc(~isnan(Nc(:)))));
label_cells = randperm(nbr_cells);
Expand Down

0 comments on commit d1445bd

Please sign in to comment.