plotpdf_evalfunc.m 603 Bytes
%Function that plots and saves the figure of the estimated pdf of the evaluation function
%for the chosen variable. 

function plotpdf_evalfunc(folder,variable_name)
    try
        load(fullfile(folder,variable_name,'pdf_eval_func.mat'));
        figure
        for i=1:size(xbinT,1)
            plot(xbinT(i,:),ks_y_T(i,:));
            hold on
        end
        xlabel(variable_name,'Interpreter','none');
        ylabel('pdf of evaluation function');
        
        saveas(gcf, fullfile(folder,variable_name,variable_name),'jpeg');
        
    catch ME
        errordlg(ME.message) 
    end
end