RandDeviate

版本 1.0.0.0 (2.5 KB) 作者: Skynet
Adds controlled noise to a numerical matrix.
1.2K 次下载
更新时间 2005/6/10

查看许可证

RANDDEV adds controlled noise to a numerical matrix. Besides the input data, the arguments it uses are DEVIATIONS_MINS, DEVIATIONS_MAXS, PROBABILITIES, RANGES_MINS, RANGES_MAXS, DECIMALPLACES, and RAND_STATE.

Examples:

randdev([1:10],-.025,.025,.75,-inf,inf,2,0)
returns [1 2.01 3.06 4 4.88 6 7.04 8 9 9.84]

randdev([1:10],-[.01:.01:.1],[.01:.01:.1],[.55:.05:1],1,10,1,0)
returns [1 2 3.1 4 4.8 6 7.1 8.5 8.5 9.8]

All applicable arguments can be entered as a single value or a numerical matrix with same dimensions as that of the input data.

Type 'help randdev' for more details.

[Please subscribe to this file if you use it, so you can be notified of updates.]

引用格式

Skynet (2024). RandDeviate (https://www.mathworks.com/matlabcentral/fileexchange/6550-randdeviate), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R14SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Made two minor changes as suggested by M-Lint.