필터 지우기
필터 지우기

how to solve the error like index exceeds matrix dimensions?

조회 수: 1 (최근 30일)
mujtaba
mujtaba 2014년 7월 2일
댓글: Geoff Hayes 2014년 7월 2일
i m using image acquisiiton toolbox in which i m trying to convert a yuy into rgb format vid = videoinput('winvideo',1,vinfo.SupportedFormats{'1280*720'}); but in this function the error comes like index exceeds matrix dimensions how can i solve it ?
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 7월 2일
What this error typically means is that the code is trying to access a vector or matrix element using an index that lies outside the dimensions of the matrix. For example, if Z is a 2x2 matrix, then Z(3,1) will throw this error.
When your code raises this error message, are you given any other information as to the line number that corresponds to this error?
I noticed that the text string for the format is
1280*720
Should this be
1280x720
instead? i.e with an x instead of the asterisk?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by