Error with Blkproc.m

조회 수: 3 (최근 30일)
Pooja
Pooja 2013년 7월 23일
I am getting error as follows how to solve it?
??? Subscripted assignment dimension mismatch.
Error in ==> blkproc at 89 aa(border(1)+(1:ma),border(2)+(1:na)) = a;
Error in ==> func_DCTJPEG at 35 Coef=blkproc(ImageSub,[8,8],'dct2(OriginalImage)');

답변 (2개)

Lokesh Ravindranathan
Lokesh Ravindranathan 2013년 7월 23일
This solution http://www.mathworks.com/support/solutions/en/data/1-FA7L9M/?solution=1-FA7L9M explains the reason for the error message. In short, you are trying to execute something which shouldn't be allowed.

Jan
Jan 2013년 7월 23일
Check your code again:
Coef = blkproc(ImageSub, [8,8], 'dct2(OriginalImage)');
The provided function is a string, but blkproc expects a function handle. How could Matlab know, what "OriginalImage" is?
Please post the relevant part of the code to allow a more explicit help.
  댓글 수: 6
Pooja
Pooja 2013년 7월 27일
Its for jpeg compression.I am also getting an error of using too many o/p arguments for another program.How to rectify that error?
Jan
Jan 2013년 7월 27일
@Pooja: Even knowing the general purpose doe not allow to suggest a specific function.
Please open a new thread for a new question. Add the concerned code there and post a copy of the complete error message.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by