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 Solvers457
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15783 Solvers
-
Generate N equally spaced intervals between -L and L
943 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
1265 Solvers
-
Sum the 'edge' values of a matrix
402 Solvers
-
391 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