Error: Index exceeds matrix dimensions.
이전 댓글 표시
obj=mmreader('ATMvid.avi');
a=read(obj, [10 200]);
%a=read(obj);
frames=get(obj,'numberOfFrames');% to find no.of frames
frames
for k = 1 : frames-1
source(k).cdata = a(:,:,:,k);
source(k).colormap = [];
end
In above code I am getting error "Index exceeds matrix dimensions.", please help
답변 (1개)
Azzi Abdelmalek
2013년 2월 24일
편집: Azzi Abdelmalek
2013년 2월 24일
What you should do is
for k = 1 : size(a,4)
source(k).cdata = a(:,:,:,k);
source(k).colormap = [];
end
댓글 수: 8
pratibha rane
2013년 2월 24일
편집: Azzi Abdelmalek
2013년 2월 24일
Azzi Abdelmalek
2013년 2월 24일
Maybe your file is not in the current folder
Image Analyst
2013년 2월 24일
Walter Roberson
2013년 2월 24일
What does mmfileinfo say about the encoder?
Is it an Indeo5 file? And are you running on 64 bit Windows? If so then are you also running with 64 bit MATLAB ?
pratibha rane
2013년 2월 24일
pratibha rane
2013년 2월 24일
pratibha rane
2013년 2월 25일
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!