error: not enough input arguments

조회 수: 8 (최근 30일)
Madeline
Madeline 2023년 2월 10일
편집: Torsten 2023년 2월 10일
Getting the following error message while trying to run the script "new_task_horizon" (attached). I have a "datadir" folder one level above the folder where the script is; tried putting it in the same folder, get the same error message. I have successfully run this script before, albeit years ago, on a different machine. Thanks for any advice!
>> new_task_horizon
Not enough input arguments.
Error in new_task_horizon (line 87)
obj.datadir = datadir;

답변 (1개)

Torsten
Torsten 2023년 2월 10일
이동: Torsten 2023년 2월 10일
You didn't specify the inputs to the function "new_task_horizon".
It is called as
new_task_horizon(stimdir, datadir, subjectID)
after specifying stimdir, datadir and subjectID.
  댓글 수: 2
Madeline
Madeline 2023년 2월 10일
Sorry, I'm super new to matlab--what could an example of properly specified inputs look like?
Torsten
Torsten 2023년 2월 10일
편집: Torsten 2023년 2월 10일
It is not a question of whether you are new to matlab or not - you must know the code and what the inputs are for in order to answer this.
It seems that the first two arguments are directory names and the last one is a number, but I don't know.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by