For the "jpegcomp" code, i get an error message telling me to "% load file of variables containing a gray image matrix" even when i load a greyscale lenna image.
for the "didi.m" code, i get an error on ine 12...
I am using matlab R2007b version. Please look at my codes and advise me on what to do.
jpegcomp code: https://www.dropbox.com/s/lpffodrrrwypxjl/jpegcomp.m
didi.m code: https://www.dropbox.com/s/nyj3ygks2d0t2mx/didi.m
thank you very much
o is a bad name for a variable - looks too much like a zero. Anyway, put these lines in and tell me what's in the command window:
whos o [rows, columns, numberOfColorChannels] = size(o) % No semicolon!