Code covered by the BSD License  

Highlights from
Co-Blade: Software for Analysis and Design of Composite Blades

image thumbnail

Co-Blade: Software for Analysis and Design of Composite Blades

by

 

18 Sep 2012 (Updated )

Analysis and design of composite blades for wind and hydrokinetic turbines

psoplotscores(options,state,flag)
function [state,options] = psoplotscores(options,state,flag)
% Plots the best and mean scores of particle swarm.

set(0, 'CurrentFigure', state.hfigure)

if strcmp(flag,'init')
    set(gca,'NextPlot','replacechildren',...
        'XLabel',xlabel('Scores'),...
        'YLabel',ylabel('Number of inidividuals'))
end

notinf   = isfinite(state.Score);
[n,bins] = hist(state.Score(notinf));
bar(bins,n,'Tag','scorehistogram','FaceColor',[0.1 0.1 0.5])

Contact us