xpchen 发表于 2009-4-27 21:08

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{:});
求教如何解决

ChaChing 发表于 2009-4-28 13:25

Undefined function or variable 'p2' ?

bullying520 发表于 2009-10-25 18:18

P1*x*p2
小写的p改成大写的试试
页: [1]
查看完整版本: matlab中blkproc函数一个错误求教