Create the following image of size 128x128 in matlab
2 views (last 30 days)
Show older comments
i(x,y)=Ke^(-[((x-xo)^2)+((y-yo)^2)]/10)
where xo and yo are the center of the image and K = 255
1 Comment
Answers (1)
Image Analyst
on 8 Oct 2014
What is the range for x and for y? Hint:
x = linspace(xStart, xEnd, 128);
y = linspace(yStart, yEnd, 128);
for col = 1 : 128
for row = 1 : 128
theImage(row, column) = % formula that uses x(col) and y(row)
end
end
imshow(theImage, []);
See if you can finish it.
0 Comments
See Also
Categories
Find more on Get Started with MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!