Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

Created by Richard Zapor

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

Tags

Problem Group

Solution Statistics

12 correct solutions 17 incorrect solutions
Last solution submitted on Jun 25, 2014

Problem Comments