Create incrementing array - MATLAB Cody - MATLAB Central

Problem 1762. Create incrementing array

Difficulty:Rate

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

52.01% Correct | 47.99% Incorrect
Last Solution submitted on Jun 14, 2025

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
2
3

Problem Recent Solvers283

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!