Error with Blkproc.m
2 次查看(过去 30 天)
显示 更早的评论
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)');
0 个评论
回答(2 个)
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.
0 个评论
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 个评论
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 Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!