Not enough input arguments

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

Respuestas (1)

Steven Lord
Steven Lord el 26 de Feb. de 2021

0 votos

You need to call your function with two input arguments. You've called it with zero or one.

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Feb. de 2021

Respondida:

el 26 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by