MATLAB: Image Help with loops

images

So I just realized that I misread the problem and was supposed to use loops to create the image values for every layer R, G and B. I have a working code but could someone please show me how I could get the same result while incorporating loops? Thank you so much!!

Best Answer

What do you mean misread? Is it homework? We're not supposed to just do your homework for you (so you don't get caught cheating), and if it's homework you're supposed to tag it as homework. Please read this http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers
So I assume you know how to do a for loop, so give it a try.
for col = 1 : 256
for row = 1 : 256
% Code for you to finish....
end
end
Related Question