You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: Microstructure_comparison_visualization_interface.m
    path of file: ./repos/MATBOX_Microstructure_analysis_toolbox/src/Microstrucrure_and_results_visualisation
    
    the code of the file until where you have to start completion: function [] = Microstructure_comparison_visua
    
function popup_axes2dview_Callback(source,~)
        % Get direction
        direction=source.Value;
        % Set slider min, max
        minor_step = 1/(max_domainsize(direction)-1);
        major_step = max([minor_step 0.1]);
        set(Slider_axes_2dview,'Min',1,'Max',max_domainsize(direction),'SliderStep', [minor_step, major_step],'Value',1);
        % Update text
        set(Text_slider,'String',['Slice: ' num2str(1) '/' num2str(max_domainsize(direction))]);
        % Update figure
        update_figure
    end