generating a sequence 1,2,3,4,....,n

 采纳的回答

R.U.F.
R.U.F. 2012-4-21

1 个投票

vector=[1:stepsize:n] if the stepsize =1 as in your case, you can disregard it

1 个评论

Following the mlint suggestion, you can omit the square brackets: "1:n"

请先登录,再进行评论。

更多回答(1 个)

类别

帮助中心File Exchange 中查找有关 Matrix Indexing 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by