How I sum to matrix wich one is the mean of the value and the other the standard deviation?
조회 수: 1 (최근 30일)
이전 댓글 표시
you certainly know that a value in order to be defined correctly it must be defined by its mean plus or minus its standard deviation:
VALUE= MEAN ± STANDARD DEVIATION
Now, I have a matrix for the mean (meanbasket) and a matrix for the standard deviation (devstdbasket).
How can I obtain the matrix of the value?
댓글 수: 0
채택된 답변
Matt J
2021년 9월 30일
I this what you mean?
[m,n]=size(meanbasket);
value=meanbasket+randn([m,n]).*devstdbasket;
댓글 수: 2
Matt J
2021년 9월 30일
It's not at all clear what you're trying to calculate. If you're just trying to compute the upper and lower bounds mentioned in your original post, then you obviously know already what operations are required because you yourself posted equations for them.
upperBound=meanbasket+devstdbasket;
lowerBound=meanbasket-devstdbasket;
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!