%bar((2*windspeed_num+0.5)/2,active_power_dev);Рset(gca,'xtick',0:1:20)Рset(gca,'ytick',0:20:200)Рgrid onРxlabel('windspeed_avr m/s')Рylabel('active_power_dev')Рtitle('power standard deviation')РР%画出最终的平均风速和平均功率曲线Рfigure Рplot(windspeed_fin_avr, active_power_fin_avr,'k .-');Рset(gca,'xtick',0:1:20)Рset(gca,'ytick',0:100:1600)Рgrid onРxlabel('windspeed_fin_avr m/s')Рylabel('active_power_fin_avr (kW)')Рtitle('final power curve')РР%画出最终的发电机功率系数Рfigure Рplot(windspeed_fin_avr,CP,'m .-');Рset(gca,'xtick',0:1:20)Рset(gca,'ytick',0:0.1:0.6)Рgrid onРxlabel('windspeed_fin_avr m/s')Рylabel('active_power_dev')Рtitle('CP系数')РРР%画出采集的散点图Рfigure Рplot(data(:,2),data(:,1),'.');Рset(gca,'xtick',0:1:22)Рset(gca,'ytick',0:100:1600)Рgrid onРxlabel('windspeed m/s')Рylabel('active_power')Рtitle('power point ')