Not enough input arguments

3 次查看(过去 30 天)
Chris Murchison
Chris Murchison 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