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

readLogical(fid)
function logical = readLogical(fid)
% This function reads a single string from the file with identifier FID and
% then moves the cursor to the beginning of the next line.

string  = fscanf(fid, '%s', 1);
string  = lower(string);         % convert to lowercase

switch string
    case {'true','t'}
        logical = true;
    case {'false','f'}
        logical = false;
end

fgetl(fid);                     

end % function readLogical

Contact us