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

1 回表示 (過去 30 日間)
OMKAR ACHARJEE
OMKAR ACHARJEE 2018 年 6 月 30 日
編集済み: Jan 2018 年 6 月 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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by