Question: please solve this using matlab code created an quotactivewindowquot vector...
Please solve this using Matlab Code
created an "activewindow" vector of 0s
and 1s which correspond to the times at which the solar panel is
producing power. Now, use it to calculate in the overall length of time
(in hours) for which the panel produces. Of many possible ways of solving
this, one method could use vector math and another could use a looping
structure with a counter. Once again, please solve each way and you
should get the same result both methods but the result itself may be
slightly different for the solarday1 data compared to the solarday2 data.