Error using setup: too many input arguments
3 views (last 30 days)
Show older comments
Sarah Mccormick
on 14 Oct 2020
Answered: Walter Roberson
on 14 Oct 2020
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
0 Comments
Accepted Answer
Walter Roberson
on 14 Oct 2020
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 Comments
More Answers (0)
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!