From: Kris zenitis on
Hello to everybody and thank in advance. I have some pictures and i want to divide them into blocks of 9x9. I have found that blockproc can help me for this task but my problem that i can t understand how does work. I wrote to matlab something like that I2 = blockproc(J,[9 9],fun); where J is my picture and then i received the message :

??? Attempt to reference field of non-structure array.

Error in ==> blockproc at 70
firstBlock = feval(fun,x,params{:});

Any idea??