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
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers74
Suggested Problems
-
1633 Solvers
-
"Low : High - Low : High - Turn around " -- Create a subindices vector
590 Solvers
-
Construct an index vector from two input vectors in vectorized fashion
461 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
974 Solvers
-
Solve a System of Linear Equations
14896 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Pascal Wenger, I recommend that you employ "assessFunctionAbsence" — see
https://au.mathworks.com/help/coursework/ug/assessfunctionabsence.html — in your Test Suite to more robustly deal with tricks to sidestep intended solution.