Solved

Splitting Circle

Consider a circle which has been divided into three concentric circles as depicted in the figure below The ratio betwen the a...

1 month ago

Solved

Apply Function to Each Field of a Structure Array: Part 2

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

1 month ago

Solved

Apply Function to Each Field of a Structure Array: Part 1

The builtin <http://www.mathworks.com/help/matlab/ref/structfun.html?=structfun structfun> applies a function handle to each fie...

1 month ago

Solved

First use of arrayfun() and anonymous function @(x)

Create an anonymous function using @(x) for a parabola equation for the given coefficients stored in s with s(1)x2 + s(2)x + s(...

1 month ago

Solved

function on a moving window

Create a function that applies an operation (such as @sum, @mean, @std, @norm etc) to a moving window of the data. First exam...

1 month ago

Solved

Make an anonymous function that has variable output

Make a anonymous function that has variable output. f = @(x)... the following equationâ†’equation(s) as followed has(ve) ...

1 month ago

Solved

Flexible Anonymous Function

Given a function handle, return a handle to a function that would accept an arbitrary number of inputs, applies the function to ...

1 month ago

Solved

Define the operators of function_handles

Suppose f and g are function_handles, try to define f+g,f-g,f*g and f/g. e.g. if f = @(x)x and g = @(x)x+1 ...

1 month ago

Solved

Two-output anonymous function?

Return a function handle that when applied to an input, it produces two outputs: the first is the same as the input, and the sec...

1 month ago

Solved

Handle to an array of functions

Given a cell array of functions that operate on scalars, it is required to return a function handle to process a vector of value...

1 month ago

Solved

Apply a function array to an array of numbers

It is required to apply a cell array of functions to a numerical array, where the functions accept only scalar inputs. Exampl...

1 month ago