Create the following image of size 128x128 in matlab
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Réponses (1)
Image Analyst
le 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 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!