MATLAB Answers

Create a column vector from 15 to -25 with a step size of 5

141 views (last 30 days)
David Durost
David Durost on 30 Aug 2019
Answered: Luna on 30 Aug 2019
I need help with a problem. Create a column vector from 15 to -25 with a step size of 5. This is what I have prob04=[15;5;-25]; and all I get is a column of just 15,5,-25. I'v tried to resolve it.

  0 Comments

Sign in to comment.

Answers (1)

Luna
Luna on 30 Aug 2019
Hi David,
Try this:
prob04 = sort(-25:5:15,'descend')

  0 Comments

Sign in to comment.

Sign in to answer this question.


Translated by