Not enough input arguments

조회 수: 3 (최근 30일)
Chris Murchison
Chris Murchison 2021년 2월 26일
답변: Steven Lord 2021년 2월 26일
Hi, I am using a framework for some code and can't figure out why it isn't working. in the line, path = sprintf(...) I am getting an error telling me there is not enough input arguments. Obviously FormatSpec has been defined and I have created the folder for the ANN models with the same name. Is there anything else I need to do so this will work?
function ANN_CAM(file_ML_DB,folder_ANN_models)
FormatSpec = '%s/';
path = sprintf(FormatSpec,folder_ANN_models);
addpath(genpath(path));
N_sources = 2; % Number of sources providing information (in the form of interval of the uncertain variables)
flag_train = 1; % Flag to detemrine if training [1] or validating [0]
flag_strat = 2; % Strategy: 1 -> predict with a single ANN the three component of dv vector
% 2 -> predict with three ANNs each of the components of the dv vector
ss = 80/100; % percetage for training
input_size = 22; % input_size = 22, being those 11: bpa of source and loewr and upper bound given by the source of: sigma2_xi, sigma2_zeta, sigma_xizeta, mu_xi, mu_zeta

답변 (1개)

Steven Lord
Steven Lord 2021년 2월 26일
You need to call your function with two input arguments. You've called it with zero or one.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by