Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Create a image that goes from white to black
조회 수: 2 (최근 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.
![](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
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!