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: spm_dcm_graph_functional.m
    path of file: ./repos/spm12
    
    the code of the file until where you have to start completion: function spm_dcm_graph_functional(A,V)
% Functional graph display
% FORMAT spm_dcm_graph_functional(A,V)
% FORMAT spm_dcm_graph_functional(V) - metric MDS
% A     - (m x m) weighted adjacency matrix
% V     - (n x m) locations in (nD) Multidimensional Scaling (MDS) Space 
%
% If V is not specified the Weighted Graph Laplacian of A is used with
% metric MDS to define the functional space.
%__________________________________________________________________________

    
function spm_dcm_graph_functional(A,V)
% Functional graph display
% FORMAT spm_dcm_graph_functional(A,V)
% FORMAT spm_dcm_graph_functional(V) - metric MDS
% A     - (m x m) weighted adjacency matrix
% V     - (n x m) locations in (nD) Multidimensional Scaling (MDS) Space 
%
% If V is not specified the Weighted Graph Laplacian of A is used with
% metric MDS to define the functional space.
%__________________________________________________________________________
% Copyright (C) 2013-2014 Wellcome Trust Centre for Neuroimaging

% Karl Friston
% $Id: spm_dcm_graph_functional.m 5823 2014-01-02 14:01:10Z guillaume $


% colours and number of nodes
%--------------------------------------------------------------------------
col   = {'b','g','r','c','m','y','k','w'};
m     = size(A,2);

% metric MDS
%--------------------------------------------------------------------------
if nargin == 1
    
    % unit sphere
    %----------------------------------------------------------------------
    set(gcf,'rend