The initialisation of this matrix which the colon operator

1 次查看(过去 30 天)
if my matrix is: B = [ 0 4 8 12 16 20 24 28 32 36 40]
would the correct initialisation be: B=0:4:20??

回答(1 个)

Walter Roberson
Walter Roberson 2015-12-2
No, but you are headed in the right direction. You will immediately see the problem when you try your code.

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by