How do I generate random differences using the rows of matrices? Can Monte Carlo be used and how can it be used?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
dpb
il 18 Mag 2019
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...
Risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!