Code covered by the BSD License  

Highlights from
Avantes to Matlab

image thumbnail

Avantes to Matlab

by

 

11 Jun 2012 (Updated )

Read spectral data from Avantes USB2 spectrometer files

addtolog(string)
function addtolog(string)
% Adds STRING to a global log variable logString.
% This is my experimental attempt to implement logging.
%
% Copyright (cc-by) K. Karapetyan, kotya.karapetyan@gmail.com, 2011.

global logString

if numel(logString) > 0 % something already in logString
    if logString(end) ~= char(10) % logString ended not with EOL?
        logString = [logString char(10)]; % add EOL
    end
end
logString = [logString string char(10)];

Contact us