Watch this Author's files
Check of nargin must be reversed: first check if nargin <2, then <3, then <4 (otherwise, option2 is not defined)
i dunno if it's me, but I'm continuously getting this error:
??? Index exceeds matrix dimensions.
Error in ==> AviRead2 at 117
if min(xx(h:(h+3))'==MOVI); %check for ID: 'movi'
The function actually reads the avi file and shows the specified frames on separate figures. But it doesn't export the frames! It would have been more appropriate if you could call the function like:
frames = AviRead('tst.avi',20);
where size(frame) = [row col frames]
What is the point of reading the data without providing access to them?
This function doesn't work.