我想在 Matlab 中生成随机数以获得良好的分布,但是,我只有一行......
我尝试了 with random('HalfNormal',500,500), with random('Binomial',50,rand(1,1));andrandom('Logistic',0,0.1);但我只得到了这样的东西:
但我需要这样的东西:
我怎样才能做到这一点?
更新:我的数据生成器代码,用于数据的第一部分:
R_i = 750;
R_0 = 7500;
t = 0.75;
a = 0.75;
for i = 1:500
R_i = R_i + random('HalfNormal',50,15);
R_0 = R_0 + random('HalfNormal',500,500);
%here is my data
[output] = ComplexChanger(R_i,R_0,t,a,random_complex_dataset);
%from here I can save to file or anything using the mean(abs(real(output))) and mean(abs(imag(output))), so I can generate a number from all of it, which means this is much more randomized
end
function [output] = ComplexChanger(R_i,R_0,t,a, random_complex_dataset)
output = R_i+(R_0-R_i)./(1+(sqrt(-1).*xdata.*t).^a); %here I change the complex data with a basic Cole stuff, which is ideal to manipulate complex number, which are good to have a two dimensional vector.
end

