Problem 47365. Find Logic 24
Guess the Logic!
logic(1,1) = 1
logic(1,2) = 4
logic(1,3) = 9
logic(2,2) = 8
logic(2,3) = 27
logic(3,2) = 4
logic(3,3) = 9
logic(4,2) = 8
logic(5,3) = 9
Make a function logic(a,b) which will return value equivalent to logic
Solution Stats
Problem Comments
-
3 Comments
Dyuman Joshi
on 26 Nov 2020
There is a discrepancy in the problem statement and the test case.
For a=1,b=3 Two different values are given (9 and 1, correspondingly).
Kindly correct this.
Dyuman Joshi
on 1 Dec 2020
My bad, I saw the test suite and the order of the variables is changed in some test cases.
Mainul Islam
on 7 Jul 2022
any hint?
Solution Comments
Show commentsProblem Recent Solvers166
Suggested Problems
-
Given a matrix, swap the 2nd & 3rd columns
1072 Solvers
-
Remove element(s) from cell array
1534 Solvers
-
1266 Solvers
-
394 Solvers
-
Coefficient of Static friction
176 Solvers
More from this Author40
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!