MATLAB Answers

0

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

Asked by David Durost on 30 Aug 2019
Latest activity Answered by 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.

1 Answer

Answer by Luna
on 30 Aug 2019

Hi David,
Try this:
prob04 = sort(-25:5:15,'descend')

  0 Comments

Sign in to comment.