Problem 733. Extract Built In Functions and Toolbox Functions from String or Function Handle
Find the Built-In functions and Toolbox functions in either a string or a function handle.
Generate a string of alphabetized Built-In functions followed by alphabetized Functions.
Inputs:
fh=@(x)log10(x)+log2(x)+abs(x)
str='smooth3(x,y)-filter(x)+abs(n)+filter2(u)+sin(x)+numel(z)'
Outputs:
'abs log2 log10'
'abs filter numel sin filter2 smooth3'
Related to Cody_464
Solution Stats
Problem Comments
-
6 Comments
I changed hte "i" to "k".
Even though "i" was being used as a variable and not in its capacity as a built-in function.
In what order the names of the function are sorted?
(Thanks for the useful tags.)
The functions are sorted alphabetically and by type.
Ex. [built_in_alphabetical, toolkit_alphabetical]
Solution Comments
Show commentsProblem Recent Solvers76
Suggested Problems
-
1358 Solvers
-
Check to see if a Sudoku Puzzle is Solved
328 Solvers
-
Back to basics 22 - Rotate a matrix
917 Solvers
-
355 Solvers
-
A Simple Tide Gauge with MATLAB
379 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!