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

Problem 1077. Count up then down

Created by Khaled Hamed

Create a function that produces counting up from 0 up to n then down to 0

n=2 --> 0 1 2 1 0

n=3 --> 0 1 2 3 2 1 0

Tags

Problem Group

Solution Statistics

126 correct solutions 104 incorrect solutions
Last solution submitted on Dec 14, 2014

Problem Comments

Solution Comments