Cody

Problem 43655. Where is the number that you want to find?

Solution 1570831

Submitted on 28 Jun 2018
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
A=magic(4) x=1 y_correct = [4 4] assert(isequal(indexmynum(A,x),y_correct))

Error in solution Line: 2 Column: 23 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

2   Fail
A=magic(6) x=22 y_correct = [3 4] assert(isequal(indexmynum(A,x),y_correct))

Error in solution Line: 2 Column: 23 Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='.

Suggested Problems

More from this Author7

Community Treasure Hunt

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

Start Hunting!