Constucting an array in column form

1 次查看(过去 30 天)
Construct an array a (in column form) made of 17 (equally-spaced) values between 17 and 289.

采纳的回答

Amit
Amit 2014-1-25
A = (linspace(17,289,17))';

更多回答(1 个)

Mischa Kim
Mischa Kim 2014-1-25
编辑:Mischa Kim 2014-1-25
Use
c = linspace(17, 289, 19)
This results in 19 data points, including the two end points, 17 and 289. To switch between row and column vector simply use the "prime"
c'

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by