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: read_images.m
    path of file: ./repos/3D-scanner/examples/cube/scripts
    
    the code of the file until where you have to start completion: function [a] =  read_images(img_num,img_name)
% 读取image_rect，保存成一个mat文件

for i = 1:img_num

    
function [a] =  read_images(img_num,img_name)
% 读取image_rect，保存成一个mat文件

for i = 1:img_num
    field_name = strcat('a',num2str(i));
    img = imread(strcat(img_name,num2str(i),'.bmp'));
%     img=uint8(img);
    eval([field_name,'=',mat2str(img,'class'),';']);
end