Guess the Logic!
logic(1,1) = 3
logic(1,2) = 5
logic(2,1) = 5
logic(2,2) = 8
logic(1,3) = 7
logic(2,3) = 11
logic(1,4) = 9
Make a Function logic(a,b) which will return value according to problem
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers471
Suggested Problems
-
Sum all integers from 1 to 2^n
18207 Solvers
-
Return elements unique to either input
818 Solvers
-
Compute a dot product of two vectors x and y
1058 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14492 Solvers
-
Converts numbers into characters
2173 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!
Any hint pls.I thought it would be a ^2 + b*2 but seem not true
Oh never mind. sum w a*b is the hint