First use of arrayfun() and anonymous function @(x) - MATLAB Cody - MATLAB Central

Problem 44083. First use of arrayfun() and anonymous function @(x)

Difficulty:Rate
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(3).
Use arrayfun() to apply the parabola equation to each element in the array A.
Note: for , while , and eval are forbidden.
Have fun :o)

Solution Stats

53.52% Correct | 46.48% Incorrect
Last Solution submitted on Dec 16, 2024

Problem Comments

Solution Comments

Show comments
R2025a Pre-release highlights
This topic is for discussing highlights to the current R2025a Pre-release.
13
5

Problem Recent Solvers64

Suggested Problems

Community Treasure Hunt

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

Start Hunting!
Go to top of page