matching elements between two arrays
Mostrar comentarios más antiguos
I have two arrays, just one column each. In the first array i have hourly electricity prices and in the other one natural gas prices. I want to match electricity prices with NG. For example:
Electricity an array with 22848 rows, containing elec prices in the form of 24h blocks.
NG an array with 904 rows.
I want next to electricity (another column, column 2 in elec array) prices to have the NG price given that in the same 24h block we have one daily NG price.
3 comentarios
Azzi Abdelmalek
el 28 de Ag. de 2013
Give a short numeric example , (10 rows for example) with the expected resullt
Walter Roberson
el 28 de Ag. de 2013
If NG is 904 daily rows, then how do those rows correspond to the 22848 hourly electrical figures, considering that 22848 hourly would be 952 days ?
George
el 29 de Ag. de 2013
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 28 de Ag. de 2013
[Electricity, reshape( NG(:,ones(1,24)), [], 1)]
2 comentarios
George
el 28 de Ag. de 2013
Walter Roberson
el 28 de Ag. de 2013
As I asked above,
If NG is 904 daily rows, then how do those rows correspond to the 22848 hourly electrical figures, considering that 22848 hourly would be 952 days ?
Categorías
Más información sobre Sources en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!