dataA=[dataA; sum(data((​i,n):(i+2,​n)))]; ...the matlab is telling it is invalid syntax how to rectifyit?

1 次查看(过去 30 天)
matlab is saying there might be some missing )]} iam not able to understand

采纳的回答

Jan
Jan 2018-6-30
编辑:Jan 2018-6-30
This is no valid Matlab code:
data((i,n):(i+2,n))
Maybe you mean:
data(i:i+2, n)
or
data(i,n):data(i+2,n)
The error message is not really matching. There is no missing parenthesis or bracket, but an invalid indexing operation.

更多回答(0 个)

类别

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