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!