Problem 2868. Matlab Basics - y as a function of x

Solution 2201171

Submitted on 9 Apr 2020 by Karl Ezra Pilario
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
x = 1; y_correct = 9; assert(isequal(y_fun_1(x),y_correct))

2   Pass
x = 3; y_correct = 67; assert(isequal(y_fun_1(x),y_correct))

3   Pass
x = 3.2; y_correct = 75.440000000000010; assert(isequal(y_fun_1(x),y_correct))

Suggested Problems

More from this Author28

Community Treasure Hunt

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

Start Hunting!