List of built-in functions?
63 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Fredrik P
il 5 Apr 2020
Commentato: Walter Roberson
il 21 Giu 2020
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.
Risposta accettata
per isakson
il 21 Giu 2020
Modificato: per isakson
il 21 Giu 2020
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.
1 Commento
Walter Roberson
il 21 Giu 2020
There are also additional built-in functions that do not have documenting .m files
Più risposte (1)
Joost
il 20 Giu 2020
There is an interesting book on speeding up Matlab functions and scripts. A few years old already, but a good read. Author Yair Altman, also active on Matlab Answers and mastermind behind the Undocumented Matlab page mentioned in one of the comments.
0 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!