Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
matlab is saying there might be some missing )]} iam not able to understand

Respuesta aceptada

Jan
Jan el 30 de Jun. de 2018
Editada: Jan el 30 de Jun. de 2018
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.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by