Descending values in vector...

131 次查看(过去 30 天)
Hi,
I would like to create a vector that goes from
[ 2244 2243 2242 ... 4 3 2 1 ]
Is this possible?
Linspace seem only creating a vector [ 1 ; 2 ; 3; ... ]

采纳的回答

Sean de Wolski
Sean de Wolski 2012-10-24
v = 2244:-1:1
Use negative one as your increment.
  1 个评论
Deanna Yancey
Deanna Yancey 2020-10-27
How do you decrease from say .9 to 1x10^-5 over 100 iterations?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by