Question: Please answer in matlab code This activity uses a 3rd party app. Though your activity may be recorded, a refresh may be required to update
Please answer in matlab code This activity uses a 3rd party app. Though your activity may be recorded, a refresh may be required to update the banner to the left Computing wind turbine output power with linear regression. A wind turbine manufacturer provides the power produced by the turbine (outputPwrData) given various wind speeds (windspeedData). A straight line fits the measured output power well for mid-range wind speeds (6-12 m/s). Use linear regression to fit a first-order polynomial (straight line) to estimate output power given a mid-range input windspeed. Isolate the measured values used for fitting Assign wind SpeedFitData with windspeedData in mid range of wind speeds (6-12 m/s Assign outputPwnFitData with output PwrData in mid range of wind speeds (6-12 m/s) Calculate the first-order polynomial coefficients that fits the isolated values: Assign outputPwrCoefs with linear regression coefficients Make use of coefficients to calculate the value of the polynomial at input windspeed Assign outputPwrEst with estimate calculated using linear regression coefficients Your Solution a save CReset MATLAB Documentation 1 function output PowerEst Estimatewind Turbine PowerMidrange windspeed 2 Estimate Wind urbinePowerMidrange: Estimate wind turbine output power 4 using linear regression in range of wind speeds (6-12 m/s). Inputs wind wind speed power 6 Outputs output PowerEst estimated output power using linear regression
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
