필터 지우기
필터 지우기

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