matlab中blkproc函数一个错误求教
RGB=imread('256.jpg');RGB=double(RGB)/255;
=size(RGB);
RGB=reshape(RGB,row,col);
T=dctmtx(8);
blocDCTmatrix=blkproc(RGB,,'P1*x*p2',T,T');
出现以下错误
??? Error using ==> inlineeval at 15
Error in inline expression ==> P1*x*p2
??? Error using ==> eval
Undefined function or variable 'p2'.
Error in ==> inline.feval at 36
INLINE_OUT_ = inlineeval(INLINE_INPUTS_, INLINE_OBJ_.inputExpr, INLINE_OBJ_.expr);
Error in ==> blkproc at 100
firstBlock = feval(fun,x,params{:});
求教如何解决 Undefined function or variable 'p2' ? P1*x*p2
小写的p改成大写的试试
页:
[1]