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

New to MATLAB?

Problem 1762. Create incrementing array

Created by Ashutosh datar

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]

Tags

Problem Group

Solution Statistics

81 correct solutions 47 incorrect solutions
Last solution submitted on Feb 02, 2015