??? Error using ==> colon Colon operands must be in range of the data type.
1 次查看(过去 30 天)
显示 更早的评论
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 Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!