Code covered by the BSD License  

Highlights from
nanoind_data_analysis

image thumbnail

nanoind_data_analysis

by

 

06 Sep 2013 (Updated )

A MATLAB GUI to plot and to analyze (nano)indentation data (obtained with conical indenters)

A_refresh_param_GUI.m
%% Copyright 2013 MERCIER David
%% Script used to refresh the GUI in function of the number of thin films
if get(value_numthinfilm_GUI, 'Value') == 1
    set(bg_film2_properties_GUI,   'Visible', 'off');
    set(bg_film1_properties_GUI,   'Visible', 'off');
    set(bg_film0_properties_GUI,   'Visible', 'off');
    set(title_bilayermodel_GUI,    'Visible', 'off');
    set(value_bilayermodel_GUI,    'Visible', 'off');
    set(title_multilayermodel_GUI, 'Visible', 'off');
    set(value_multilayermodel_GUI, 'Visible', 'off');
    set(cb_corr_thickness_GUI,     'Visible', 'off');
    set(cb_corr_thickness_GUI,     'Value',0);
    
elseif get(value_numthinfilm_GUI, 'Value') == 2
    set(bg_film0_properties_GUI,   'Visible', 'on');
    set(bg_film1_properties_GUI,   'Visible', 'off');
    set(bg_film2_properties_GUI,   'Visible', 'off');
    set(title_multilayermodel_GUI, 'Visible', 'off');
    set(value_multilayermodel_GUI, 'Visible', 'off');
    
elseif get(value_numthinfilm_GUI, 'Value') == 3
    set(bg_film0_properties_GUI, 'Visible', 'on');
    set(bg_film1_properties_GUI, 'Visible', 'on');
    set(bg_film2_properties_GUI, 'Visible', 'off');
    set(title_bilayermodel_GUI,  'Visible', 'off');
    set(value_bilayermodel_GUI,  'Visible', 'off');
    
elseif get(value_numthinfilm_GUI, 'Value') == 4
    set(bg_film0_properties_GUI, 'Visible', 'on');
    set(bg_film1_properties_GUI, 'Visible', 'on');
    set(bg_film2_properties_GUI, 'Visible', 'on');
    set(title_bilayermodel_GUI,  'Visible', 'off');
    set(value_bilayermodel_GUI,  'Visible', 'off');
    
end

if get(value_bilayermodel_GUI, 'Value') > 1 && get(value_param2plotinyaxis_GUI, 'Value') == 3
    set(cb_residual_plot_GUI, 'Visible', 'on');
    
elseif get(value_bilayermodel_GUI, 'Value') > 1 && get(value_param2plotinyaxis_GUI, 'Value') == 4
    set(cb_residual_plot_GUI, 'Visible', 'on');
    
elseif get(value_multilayermodel_GUI, 'Value') > 1 && get(value_param2plotinyaxis_GUI, 'Value') == 3
    set(cb_residual_plot_GUI, 'Visible', 'on');
    
elseif get(value_multilayermodel_GUI, 'Value') > 1 && get(value_param2plotinyaxis_GUI, 'Value') == 4
    set(cb_residual_plot_GUI, 'Visible', 'on');
    
else
    set(cb_residual_plot_GUI, 'Value', 0);
    set(cb_residual_plot_GUI, 'Visible', 'off');
    
end

Contact us