Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Create a image that goes from white to black
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi everyone.
I want to create an image that have white in the middle and while it goes to the sides it gets darker.
An image like this but with variable rows and colums.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1175003/image.jpeg)
I have try whit this:
theta = linspace(0, 2*pi, 256);
I = repmat((-cos(theta) + 1)/2, [256 1]);
h = imshow(I);
But i don't know how to change its size.
2 Kommentare
KSSV
am 31 Okt. 2022
What do you meanby changing size? You can play around with his right?
n = 256 ; % change this
theta = linspace(0, 2*pi,n);
Antworten (0)
Diese Frage ist geschlossen.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!