织梦CMS - 轻松建站从此开始!

欧博ABG-会员注册-官网网址

欧博官网Generate Array of Random Numbers with Specifie

时间:2025-12-19 00:21来源: 作者:admin 点击: 2 次
I think that this should solve your problem: N = 10; n = 5; standard_deviation = n / 10; % Generates a vector of N ones, then moltiply it to the sca

I think that this should solve your problem:

N = 10; n = 5; standard_deviation = n / 10; % Generates a vector of N ones, then moltiply it to the scalar n nominal_values = n * ones(N, 1); % Generates a vector of N standard random normal realizations, then multiply them to the scalar (n/10) -> you get a centered random normal with std n/10 deviations = standard_deviation * randn(N, 1); % Get the final result result_array = nominal_values + deviations;

I hope this will solve your problem, you are welcome to ask for a clarification if needed.

(责任编辑:)
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:
发布者资料
查看详细资料 发送留言 加为好友 用户等级: 注册时间:2025-12-20 15:12 最后登录:2025-12-20 15:12
栏目列表
推荐内容