MATLAB: List of built-in functions

built-in functionsMATLAB

Is there somewhere a list of Matlab’s built-in functions like histc that are not written in Matlab own scripting language? That is, functions whose code that can’t be revealed by open functionName.

Best Answer

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.