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

savePlots(fig, figTitle, SAVE_FIG_FMT)
function savePlots(fig, figTitle, SAVE_FIG_FMT)

if strncmp(SAVE_FIG_FMT,'-fig',4)
	saveas(fig, figTitle, 'fig')
else       
    fig_ops = textscan(SAVE_FIG_FMT, '%s','delimiter', ',');
    ops     = cell(length(fig_ops{:}), 1);
    for n = 1:length(fig_ops{:})
        ops{n} = strcat(', ''', fig_ops{:}(n), '''');
    end        
    expr = ['export_fig(fig, figTitle', char( strcat(ops{:}) ), ')'];
    eval(expr);
end

end % function savePlots

Contact us