Borrar filtros
Borrar filtros

??? Error using ==> colon Colon operands must be in range of the data type.

2 visualizaciones (últimos 30 días)
Don S
Don S el 25 de Abr. de 2014
Comentada: Azzi Abdelmalek el 25 de Abr. de 2014
HI,
I have a matrix of size "res<1*11969>". I would like to retrieve the values from index 900 to 11969 automatically. When I gave like this
mStart=900;
mEnd=11969;
res(:,[mStart:mEnd]) it shows an error " colon Colon operands must be in range of the data type" .
It will run if I gave res(:,[900:mEnd]).
But if I give res(:,[mStart:11969])it will shows the same error.
Kindly help in this issue as I would like to pass the values with variables.
Don

Respuestas (0)

Categorías

Más información sobre Matrices and Arrays 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