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

55 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 (3)

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.


Stephen John
Stephen John on 3 Nov 2024 at 12:39

A = 32:2:74;

Categories

Find more on Simulink 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!