Skip to content
Snippets Groups Projects
Verified Commit adddcf61 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

minus_logged_prior_density.m: fix syntax error with output arguments

It’s not possible to use tildes for declaration of output arguments (otherwise
these arguments will be uninitialized if requested).

Detected by MATLAB Code Analyzer app.
parent 79959aa5
Branches
Tags
No related merge requests found
function [fval, info, exitflag, ~, ~] = minus_logged_prior_density(xparams, Prior, options_, M_, estim_params_, oo_)
function [fval, info, exitflag, fake1, fake2] = minus_logged_prior_density(xparams, Prior, options_, M_, estim_params_, oo_)
% Evaluates minus the logged prior density.
%
......@@ -33,6 +33,8 @@ function [fval, info, exitflag, ~, ~] = minus_logged_prior_density(xparams, Prio
exitflag = true;
info = zeros(4,1);
fake1 = [];
fake2 = [];
%------------------------------------------------------------------------------
% 1. Get the structural parameters & define penalties
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment