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??
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!