Error using setup: too many input arguments

I keep receiving the following error message:
"Error using setup
Too many input arguments.
Error in nirsHR (line 65)
setup group structures"
Below is the code:
%% Set up for NIRS study
% run on all .nirs files in a directory, use the first file as a template
% to set up group structures
files=dir('*.nirs');
nSubjs=length(files);
subj=files(1).name;
load(subj , '-mat')
nChans=sum(SD.MeasList(:, 4)==1);
chans=1:nChans;
CondNames=('channel_1''channel_2''channel_3''channel_5''channel_6''channel_7''channel_9''channel_10''channel_11''channel_12');
groupCondNames=CondNames;
setup group structures
for i = 1:length(CondNames)
condTrials{i}=cell(1, nSubjs);
end

 采纳的回答

You have psat installed. You need to find the psat settings.m file (in the main PSAT installation directory) and delete it or rename it.
The PSAT settings.m file holds some preferences, and PSAT has code to build those preferences in memory if settings.m is not found.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Search Path 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by