I keep getting this error when inputting this code. Im trying to eventually convert a color image to greyscale using nested for loops. Heres the error message "Undefined function 'avg' for input arguments of type 'double'"
x = imread('RickMoranis.jpg');
r = size(x, 1);
c = size(x, 2);
for row = 1:r
for col = 1:c
y= mean(avg(row,col,:));
end
end
end
avgis a matlab function, do you meanmean? (The error is saying it doesn't know what the functionavgis) - mathematical.coffee