Info
此问题已关闭。 请重新打开它进行编辑或回答。
Create a image that goes from white to black
1 次查看(过去 30 天)
显示 更早的评论
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.
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 个评论
KSSV
2022-10-31
What do you meanby changing size? You can play around with his right?
n = 256 ; % change this
theta = linspace(0, 2*pi,n);
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!