Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
NMR_OPTIMA_BIDS/mkdir_BIDS.m
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (15 sloc)
540 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mkdir_BIDS(output_dir) | |
% | |
% prepare BIDS directory structure | |
% | |
% this function creates a temporary subdirectory "BIDS" in the | |
% current subject's folder | |
% | |
% file history: | |
% created M. Czisch & F. Binder 8.11.2017 | |
% last 2.3.2018 M. Czisch | |
fprintf('creating temporary BIDS structure\n'); | |
cmd_str = ['mkdir ', output_dir]; system(cmd_str); | |
cmd_str = ['mkdir ', output_dir, '/anat']; system(cmd_str); | |
cmd_str = ['mkdir ', output_dir, '/func']; system(cmd_str); | |
cmd_str = ['mkdir ', output_dir, '/dwi'] ; system(cmd_str); |