Open drbenvincent opened 7 years ago
In Parametric.m we have some code with a long set of arguments passed in...
Parametric.m
clusterPlot(... obj.coda,... obj.data,... [1 0 0],... obj.modelFilename,... obj.plotOptions,... obj.varList.discountFunctionParams)
meaning the the function signature has many entries
function clusterPlot(mcmcContainer, data, col, modelType, plotOptions, vars) varNames = {vars.name}; if numel(varNames) == 1 plot1Dclusters(mcmcContainer, data, col, modelType, plotOptions, vars); elseif numel(varNames) == 2 plot2Dclusters(mcmcContainer, data, col, modelType, plotOptions, vars); else error('can only deal with plotting univariate or bivariate distributions') end end
which in turn means we are passing these values down yet again into plot1Dclusters.m or plot1Dclusters.m
plot1Dclusters.m
In
Parametric.m
we have some code with a long set of arguments passed in...meaning the the function signature has many entries
which in turn means we are passing these values down yet again into
plot1Dclusters.m
orplot1Dclusters.m
Solutions