Problem 1548. Vector of numbers divisible by 3

  • Input(n) - any integer
  • Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0


  • n=6; v=[6 3]
  • n=-16; v=[-15 -12 -9 -6 -3]

Solution Stats

38.19% Correct | 61.81% Incorrect
Last solution submitted on Dec 04, 2016

Solution Comments


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!

Join the 15-year community celebration.

Play games and win prizes!

Learn more