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: VBA_updateDisplay.m
    path of file: ./repos/VBA-toolbox/core/display
    
    the code of the file until where you have to start completion: function VBA_updateDisplay(posterior,suffStat,options,y,it,flag)
% // VBA toolbox //////////////////////////////////////////////////////////
%
% VBA_updateDisplay(posterior,suffStat,options,y,it,flag)
% updates display of sufficient statistics
%
% This function deals with the screen display of iterative sufficient
% statistics updates of the VBA inversion algorithm

% IN:
%   - posterior: structure defini
    
function update_observation_plot ()
        
        % extract relevant values to be displayed
        % =====================================================================
        
        % get index of observations from current source
        s_out = options.sources(currentSource).out;
        
        y_src = y(s_out,:);
        vy_src = suffStat.vy(s_out, :);
        g_src = suffStat.gx(s_out,:);

        % deal with vertical case
        if size (y, 2) == 1 && size (y, 1) > 1
            y_src = y_src';
            g_src = g_src';
            vy_src = vy_src';
        end