Discover MakerZone

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

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!

Problem 1548. Vector of numbers divisible by 3

Created by Marek Kuklis
  • 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]


Problem Group

Solution Statistics

62 correct solutions 98 incorrect solutions
Last solution submitted on Nov 20, 2015

Solution Comments