plotpdf_param.m 819 Bytes
%Function that plots and saves the conditional pdfs of parameters that are
%used for computing MIRI


function plotpdf_param(handles,hObject,handles1)

    try
        load(fullfile(handles1.folder,handles1.chosen_protein,'pdf_param.mat'));
        for i=1:length(handles1.nominal_p)
            figure
            for k=1:handles1.Nr
                plot(xbin_param{1,k}(i,:),ks_param{1,k}(i,:),'b',xbin_param{2,k}(i,:),ks_param{2,k}(i,:),'r');
                hold on
            end
            xlabel(handles1.param_name{i,1},'Interpreter','none');
            ylabel('pdf');
            legend('Conditional upper density','Conditional lower density');
            savefig(fullfile(handles1.folder,handles1.chosen_protein,handles1.param_name{i,1}));
        end
    catch ME
        errordlg(ME.message)
    end
end