看板Programming
标 题Re: ? 2d Gaussian noise in MatLab
发信站清华资讯(枫桥驿站) (Mon Aug 21 01:00:21 2006)
转信站ptt!ctu-reader!Spring!news.nctu!news.ntu!news.ee.ttu!netnews.csie.nctu
※ 引述《[email protected] ( )》之铭言:
> noise = mean+std*randn % gives Gaussian noise with specific mean and std
> But this can give noise > 1. What if we want to have Gaussian noise
> but have this noise to be with [0,1] like rand()?
> by Cheng Cosine
> Aug/11/2k6 NC
You may scale the result to the range of [0, 1] by using "imagesc" function.
--
※ Origin: 枫桥驿站<bbs.cs.nthu.edu.tw> ◆ From: thccy11.oz.nthu.edu.tw