필터 지우기
필터 지우기

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

조회 수: 2 (최근 30일)
Don S
Don S 2014년 4월 25일
댓글: Azzi Abdelmalek 2014년 4월 25일
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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by