The end operator must be used within an array index expression.
이전 댓글 표시
Hi,
I am reading every 600th frame from the video by using the end operator but I am getting this error here.
Code:
v = VideoReader('DSC_1191.MOV');
frame = read(v,[600:600:end]);
Error:
The end operator must be used within an array index expression.
Error in Spec_Frame (line 3)
frame = read(v,[600:600:end]);
채택된 답변
추가 답변 (1개)
Steven Lord
2021년 4월 21일
2 개 추천
In this case read is a function, not a variable. Attempting to "index" into the function with end won't work. I would probably replace end with v.NumFrames.
댓글 수: 1
Stephan
2021년 4월 21일
Thank you for the clarification.
카테고리
도움말 센터 및 File Exchange에서 Audio and Video Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!