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: DimensionalityAnalysis.m
    path of file: ./repos/cuffless-BP-estimation/pca
    
    the code of the file until where you have to start completion: function DimensionalityAnalysis(code)

global data

% Creating Input fro PCA analysis - only features rows=obs and col=feat

    
function DimensionalityAnalysis(code)

global data

% Creating Input fro PCA analysis - only features rows=obs and col=feat
N = length(data);
N_feat = length(fieldnames(data)) - 7 - 2; % Number of fields minus SBP, DBP, subject_tag and signal fields
FieldNames = fieldnames(data);
FeatureNames = {FieldNames{8:end