The external toolbox does not display enough parameters when setting the path. How to solve it?

조회 수: 2 (최근 30일)
>> LFToolboxPath = fileparts(mfilename('fullpath'));
fprintf('Adding paths for LF Toolbox ');
addpath( fullfile(LFToolboxPath) );
addpath( fullfile(LFToolboxPath, 'SupportFunctions') );
addpath( fullfile(LFToolboxPath, 'SupportFunctions', 'CameraCal') );
fprintf('%s, done.\n', LFToolboxVersion);
Adding paths for LF Toolbox ??? Error using ==> fullfile
Not enough input arguments.
  댓글 수: 8
Walter Roberson
Walter Roberson 2019년 4월 14일
At the MATLAB command line, type in the command
which -all fullfile
"which" is a literal command, just like "help" is a command.
If it helps you to understand, you could instead execute
which('-all', 'fullfile')
and if you have trouble understanding that, then execute
eval('which -all fullfile')
Do not replace the word "which" with anything else, put in the exact letters w h i c h (but with no spaces between them)
Huadong Hu
Huadong Hu 2019년 4월 14일
>> which -all fullfile
C:\MATLAB7\toolbox\matlab\iofun\fullfile.m

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

채택된 답변

Walter Roberson
Walter Roberson 2019년 4월 14일
You are using MATLAB R14, from June 2004, a full decade before the Lightfield Toolbox https://www.mathworks.com/matlabcentral/fileexchange/49683-light-field-toolbox-v0-4 was released. It is likely you will encounter problems.
You could try changing the line
addpath( fullfile(LFToolboxPath) );
to
addpath( LFToolboxPath );
Do not change the remaining addpath() calls. I suspect that back then, fullfile() always expected at least two parameters.
  댓글 수: 1
Huadong Hu
Huadong Hu 2019년 4월 14일
followed your advice,it shows below,does it mean the problem is solved?
Adding paths for LF Toolbox Warning: Name is nonexistent or not a directory: SupportFunctions.
> In path at 115
In addpath at 95
Warning: Name is nonexistent or not a directory: SupportFunctions\CameraCal.
> In path at 115
In addpath at 95
v0.4 released 12-Feb-2015, done.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Search Path에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by