I have a script that is attached below that models the power output of a wind turbine and PV panel array at hourly intevals. I need to use exhaustive search to find the power output for every combination of turbine radius and number of PV panels. The hourly irradiance and wind speeds are given by 8760x1 column vectors. I have tried to impliment two for loops for return all the power outputs from the possible wind turbine and PV panel size arrays although its not working and i dont know why, although i do know i mustnt be coding it correctly. currently i am getting the following error
Unable to perform assignment because the left and right sides have a different number of elements.
Error in KB7045_HRES_costing (line 29)
Vhub(i) = vref.*log(Hhub(i)/z0)./log(zref/z0); %(m/s)