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!