Skip to content

Commit

Permalink
Added example
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Alexander committed Nov 30, 2023
1 parent bdea8ed commit abe2af2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions data_functions/bidsFilename.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,31 @@
% cfg.detailed = true; % or false. Include ses/task/run info?
% If cfg is empty, or not enough info is provided only a folder will be output
%
% % Minimum use example
% bids = [];
% bids.sub = subCode;
% bids.directory = 'D:\data\EM067\1_YOUNG';
% cfg = [];
% cfg.category = 'preprocessing';
% [filename, folder] = bidsFilename(cfg,bids)
%
% % Full use example
% bids = [];
% bids.sub = subCode;
% bids.ses = '001';
% bids.run = '001';
% bids.task = 'practice';
% bids.directory = 'D:\data\amazingProject';
%
% cfg = [];
% cfg.category = 'meg';
% cfg.description = 'frequencyData';
% cfg.type = '.mat';
% cfg.derivative = true;
% cfg.detailed = true;
%
% [filename, folder] = bidsFilename(bids,cfg);

% Author: Nicholas Alexander, [email protected]

%% Check input
Expand Down

0 comments on commit abe2af2

Please sign in to comment.