Index in position 1 is invalid. Array indices must be positive integers or logical values. Error in Q (line 13) D(I,J) = D(I,J)+A(I,K).*B(K,J)

2 次查看(过去 30 天)
HI , how can i fix line 13?

回答(1 个)

David Fletcher
David Fletcher 2021-4-17
In Matlab indices start at 1 (your loops start at 0)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by