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: OlivettiReader.m
    path of file: ./repos/scGEAToolbox/+run/external/mt_SNNDPC
    
    the code of the file until where you have to start completion: function [data, answer] = OlivettiReader(width, height, pcaPercentage)
%

%Disable useless warning: file contains extra data
warning('off', 'all');

%Main process
data = zeros(400, width*height);

    
function [data, answer] = OlivettiReader(width, height, pcaPercentage)
%

%Disable useless warning: file contains extra data
warning('off', 'all');

%Main process
data = zeros(400, width*height);
answer = zeros(400, 1);
rowCount = 0;
loc = '..\..\res\ClusteringDataset\Realworld\OlivettiFaces\';
folderList = dir(loc);
for p = 1:length(folderList)
    folder = folderList(p);
    if folder.name(1) == 's'
        fileList = dir(strcat(loc, folder.name));
        for o = 1:length(fileList)
            file = fileList(o);
            if ~file.isdir
                rowCount = rowCount + 1;
                %Read, resize, reshape, assign
                data(rowCount, :) = reshape(imresize(imread(strcat(loc, folder.name, '\', file.name)), [height, width]), 1, width*height);
                answer(rowCount) = str2double(folder.name(2:end