Code covered by the BSD License  

Highlights from
Avantes to Matlab

image thumbnail

Avantes to Matlab


Kotya Karapetyan


11 Jun 2012 (Updated )

Read spectral data from Avantes USB2 spectrometer files

function addtolog(string)
% Adds STRING to a global log variable logString.
% This is my experimental attempt to implement logging.
% Copyright (cc-by) K. Karapetyan,, 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
logString = [logString string char(10)];

Contact us