error in using latin hypercube sampling 'lhsnorm'
9 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MOHD UBAID
el 2 de Jul. de 2020
Comentada: MOHD UBAID
el 3 de Jul. de 2020
mu =
30.2800 468.9000 5.0000 0.2042
>> cov=[21 10 40 12]
cov =
21 10 40 12
>> l=lhsnorm(mu,cov,10)
Index in position 1 exceeds array bounds (must not exceed 1).
Error in lhsnorm (line 59)
x(:,i) = norminv(x(:,i),mu(i), sqrt(sigma(i,i)));
why is it showing this error and how can i eliminate this error?
thanks in advance
0 comentarios
Respuesta aceptada
Walter Roberson
el 2 de Jul. de 2020
When your mu is a vector of length 4, then your cov must be a 4 x 4 positive definite (covariance) matrix, not a row vector.
Más respuestas (0)
Ver también
Categorías
Más información sobre Industrial Statistics en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!