Cody

Problem 1762. Create incrementing array

Given a and b generate an output matrix as shown in following examples:

 a=2
 b=5
 output=[2 20 200 2000 20000]
 a=4
 b=3
 output=[4 40 400]

Solution Stats

62.05% Correct | 37.95% Incorrect
Last solution submitted on Nov 28, 2016
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