Cody

Problem 2858. Matlab Basics - Logical Tests I

Created by Yaz Majeed in Community

Write a script to test whether a year number is for a leap year or not.

eg. x = 1884 output = 1

eg. x = 3 output = 0

Solution Stats

41.82% Correct | 58.18% Incorrect
Last solution submitted on Mar 16, 2019

Problem Comments

Solution Comments

Recent Solvers128

Suggested Problems

More from this Author28

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!