How do I generate random differences using the rows of matrices? Can Monte Carlo be used and how can it be used?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello everyone. I have two matrices [A] and [B] with equal dimensions, 8760x 40. I have another matrix C _actual [8760 by40 ] well which i need to compare to the difference obtained from [A - B] which I have named C-diff(i,j)
Below is the explanation of this process:
A('row (i)value') -B('randomrow(i)value') =C_diff ('row(i)value'); % the difference between the particular row of A and the random value of row (i) in B should give me the closest value of C.
|C_diff(i,j)- C_actual|==min(Deviation) % the condition of operation
% the difference is only to be done within the rows.
A(1,1)- B(1,n) = C_diff(1,1)% such that n is the position occupied the value that gives the least deviation from the actual C(1,1)
% Perfect results
C_diff(i,j)=C_actual(i,j);
Please help out if you can.
댓글 수: 2
dpb
2019년 5월 18일
Sorry, can't follow...
Post a (SMALL) example of A and B and the desired result showing how you get the latter from the two...
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!