how to create a normal distribution matrix?
조회 수: 4 (최근 30일)
이전 댓글 표시
Hi everyone,
I want to create a normal distribution matrix (gaussian matrix) have size 120 x 320, with value of each pixel in range 0-255.
Please help me. Thank you so much.
댓글 수: 0
답변 (1개)
dpb
2019년 7월 5일
NRV=normrnd(0,1,120*320,1);
NRV=reshape(interp1([min(NRV);max(NRV)],[0;255],NRV),120,[]);
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!