create a vector of the even whole numbers between 31 and 75

77 views (last 30 days)
create vectors of the even whole numbers

Accepted Answer

Juliana Damaceno
Juliana Damaceno on 19 Jan 2018
A = 32:2:75

More Answers (2)

Anuj
Anuj on 28 Feb 2014
A=[32:2:75]

Khushboo Kumari
Khushboo Kumari on 18 Dec 2017
A=[31:2:75]
  1 Comment
Walter Roberson
Walter Roberson on 18 Dec 2017
No, that would produce 31, 33, 35, and so on, which are odd whole numbers not even whole numbers.

Sign in to comment.

Categories

Find more on Verification, Validation, and Test in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!