Find Logic 10 - MATLAB Cody - MATLAB Central

Problem 47265. Find Logic 10

Difficulty:Rate
Guess the logic!
logic(1) = 120
logic(2) = 60
logic(3) = 20
logic(4) = 5
Make a function logic(x) which will return 'x' th term of sequence

Solution Stats

61.7% Correct | 38.3% 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 Solvers347

Suggested Problems

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!