Find Logic 24 - MATLAB Cody - MATLAB Central

Problem 47365. Find Logic 24

Difficulty:Rate
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

40.52% Correct | 59.48% Incorrect
Last Solution submitted on Jun 25, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers183

Suggested Problems

More from this Author40

Community Treasure Hunt

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

Start Hunting!