On R2018b, Win10 and a SSD, this code
tic
sad = dir( fullfile( matlabroot, 'toolbox', 'matlab', '**', '*.m' ) );
for d = reshape( sad, 1,[] )
if d.bytes <= 4096
ffs = fullfile( d.folder, d.name );
chr = fileread( ffs );
if contains( chr, 'Built-in function', 'IgnoreCase',true )
fprintf( '%s\n', d.name );
end
end
end
toc
produced a list with 496 names. The elapse time of the second run was less than two and a half seconds.
Best Answer