Skip to content

Commit 5f2766e

Browse files
committed
added behavior to design matrix
1 parent e3e99ca commit 5f2766e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

+nla/+inputField/Behavior.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,12 @@ function button_sub_covClickedCallback(obj, ~)
383383
end
384384

385385
function button_view_design_mtxClickedCallback(obj)
386-
386+
labels = [obj.behavior_full.Properties.VariableNames(obj.behavior_idx)];
387387
if ~islogical(obj.covariates_idx)
388-
labels = {obj.table.ColumnName{obj.covariates_idx}};
389-
nla.gfx.drawDesignMtx(obj.covariates, labels);
390-
391-
388+
labels = [labels; obj.table.ColumnName(obj.covariates_idx)];
389+
nla.gfx.drawDesignMtx([obj.behavior, obj.covariates], labels);
390+
else
391+
nla.gfx.drawDesignMtx(obj.behavior, labels);
392392
end
393393
end
394394

0 commit comments

Comments
 (0)