看板Programming
標 題Re: ? 2d Gaussian noise in MatLab
發信站KKCITY (Thu Aug 10 10:09:16 2006)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!bbs.ee.ntu!news.kkcity.com.
randn()
rand() randn()都可用n維矩陣
請多看doc
※ 引述《ccos ( )》之銘言:
> MatLab built-in function rand() gives uniform dist random numbers.
> x = rand(10); xgauss = exp( -0.5*( ( x-mu )./std ).^2 )/sqrt(2*pi*std);
> The above gives 1D Gaussian noise. But now I'd like to add Gaussian
> noise to a 2D picture. How do I generate 2D Gaussian noise then?
> Thanks,
> by Cheng Cosine
> Aug/09/2k6 NC
--
┌─────◆KKCITY◆─────┐ ◢
◤ 找歌最方便 KKBOX 歌詞搜尋!!
│ bbs.kkcity.com.tw │ \^_^ / ★http://www.kkbox.com.tw★
└──《From:24.218.41.138
》──┘ ◤ 唱片公司授權,音樂盡情下載
--