I have about 1500 image files in a folder and listing all using dir()last too long and sometimes crashes the AppDesigner. Is there a way to list only the first image or the firstnimages at a given time?
By using the 'dir' function, you would know the number of files present in the folder. You can then access the required number of files using a loop and by accessing the 'name' property of the file. The following might serve you as an example for displaying the names of first 'n' files.
dirFiles = dir(folderpath);
for i = 1:n
Similarly you can use other properties like 'folder' to perform your required operation. For more information on 'dir' method refer to the following link