One thing you want to keep in mind is how the format of the license plate part of the file name will look, as this can sometimes affect the ordering of files in a directory. For example, using the naming convention you specified above sometimes results in a sort order like this:
image1.jpg
image10.jpg
image11.jpg
image2.jpg
image3.jpg
...
This is usually not what you would like. If you instead added a number with zeros to the maximum size (in your case 5 digits), the sort order should be better supported in the directory:
image00001.jpg
image00002.jpg
image00003.jpg
....
To create file names like this, you can use the SPRINTF function . Here is an example code that renames all .jpg files in a directory as follows:
dirData = dir('*.jpg'); %
fileNames = {dirData.name}; %
for iFile = 1:numel(fileNames) %
newName = sprintf('image%05d.jpg',iFile); %
movefile(fileNames{iFile},newName); %
end
The above code also uses DIR and MOVEFILE (as mentioned in other answers).