RGB =imread('image.jpg');hsv= rgb2hsv(RGB);imshow(hsv);r1=0.1;r2=0.85;i= 0:20:240;s= 0.0:0.2:1.0;wgray = 1 - bsxfun(@power, s(:), (r1*(255./(i(:).')).^r2) ); P=diff(wgray,s);
i want to calculate partial derivative of wgray w.r.t s and i have applied but getting error in line 9
Best Answer