Azzera filtri
Azzera filtri

printing output

2 visualizzazioni (ultimi 30 giorni)
milad babaei
milad babaei il 18 Giu 2011
This function will generate a normal distribution conditional by bounds:
i have run above code 3times and produced 3diffrent random variables.i would like to know is there any way to have these 3outputs that each of them has a format like this X(1,i),i=1e4,in one vector or matrix and then print that??or please let me know if another sufficient way to print those 3random variables/.

Risposte (1)

Paulo Silva
Paulo Silva il 18 Giu 2011
I have no idea how the function works, here's just a few basic tips:
X1 = TruncatedGaussian(sigma1, range1, n) %first test
X2 = TruncatedGaussian(sigma2, range2, n2) %second test
X3 = TruncatedGaussian(sigma3, range3, n3) %third test
clf
hold on
plot(X1)
plot(X2)
plot(X3)
legend('test 1','test 2', 'test 3')

Community Treasure Hunt

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

Start Hunting!

Translated by