Dear Mr. Gilman,
My true apologies for this being a never ending quest, but there is still something wrong..
When I try what you suggested lastly, i.e. all the array values separated by a comma and placed in the first cell of the CSV file forming a row of comma separated values, LK only reads the first value of 0 ..
Further, I tried to separate the values by a comma using (text to columns - delimited - comma) function from the Data tap in Excel, however, it gives the following (seems like an array placed at the first index of the main array):
AEG = [ [ 0, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000, 284000000 ] ]
and of course the same error message appears:
access violation: expected numeric, but found array
Please have a super quick look on my CSV file and the very simple code:
path = 'C:/Users/Mohammed/Desktop/LCOE Calculation' + '/';
AEG = csvread (path + 'AEG.csv', {'numeric' = true, 'table' = false});
variable_costs = csvread (path + 'variable M&O costs.csv', {'numeric' = true, 'table' = false});
for (i = 0 ; i<26; i++)
{
OM_production_capacity_expenses = variable_costs * AEG;
simulate (); }
outln(OM_production_capacity_expenses);
of course when I set i= 26, this code gives error array index out of bound, while when I reset it to i=1, it goes back to error of access violation: expected numeric, but found array..
Thanks for your efforts and time.
Regards,
Mohammed