How to fill a matrix with numbers from a to b ?

31 views (last 30 days)
Hello,
how to fill a matrix with numbers from a=4 to b=40 with increasing factor c=2 for example:
4,6,8,......,38,40.
regards,

Accepted Answer

Bruno Luong
Bruno Luong on 6 Oct 2018
A = 4:2:40

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!