No BSD License  

Highlights from
INCA Matlab Auto Calibration Wizard

image thumbnail

INCA Matlab Auto Calibration Wizard

by

 

27 Sep 2007 (Updated )

This is a Matlab application which accesses the INCA API and guides users through the process of aut

explode (valuestring,delimiter)
function results = explode (valuestring,delimiter)

%Create empty results array
results =[];

%Search through string for spaces
spaces = findstr(valuestring,delimiter);

%Determine how many terms there are
spacesnum = length(spaces);

if spacesnum>0
    %Strip off first term
    termnum = 1;
    results = [results;str2double(valuestring(1:spaces(termnum)-1))];
    
    if spacesnum>1
        %For each middle term, store it into the result array
        for termnum = 1:spacesnum-1
            results = [results;str2double(valuestring(spaces(termnum)+1:spaces(termnum+1)-1))];
        end
        termnum = termnum+1;
    end
    
    %String off end term
    results = [results;str2double(valuestring(spaces(termnum)+1:length(valuestring)))];
    
    results = results';
else
    results = str2double(valuestring);
end

Contact us