How can i compare two arrays of different size and replace value of one array into the third one.?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Given T,L want to achieve
T=[4 4 5 5 6 6];
L=[0.5 0.9 0.6 0.4 0.2 0.8];
C=[0 0 0 1.4 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0];
T= showing time step;
L= load;
C is the 24 hours load;
operation:
we have two loads at 4 (0.5 and 0.9) so at 4 we have 1.4) same as on time step 5 and 6 the remaining should be zero because we don't have any load on that time.
Thanks in advance
2 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays 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!