Cody

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

Solution 1358743

Submitted on 27 Nov 2017
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   Fail
x = 1; y_correct = 9; assert(isequal(y_fun_1(x),y_correct))

Error in solution Line: 2 Column: 4 Unexpected MATLAB expression.

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

Error in solution Line: 2 Column: 4 Unexpected MATLAB expression.

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

Error in solution Line: 2 Column: 4 Unexpected MATLAB expression.

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!