Extract Built In Functions and Toolbox Functions from String or Function Handle - MATLAB Cody - MATLAB Central

Problem 733. Extract Built In Functions and Toolbox Functions from String or Function Handle

Difficulty:Rate

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

23.66% Correct | 76.34% Incorrect
Last Solution submitted on Nov 20, 2025

Problem Comments

Solution Comments

Show comments
Join Cody Contest 2025 — Have Fun and Win Prizes!
...
We’re excited to invite you to Cody Contest 2025! 🎉 Pick a team,...

Problem Recent Solvers79

Suggested Problems

More from this Author308

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!