Code covered by the BSD License  

Highlights from
CO2gui - lab control and automation

CO2gui - lab control and automation

by

 

06 Jan 2010 (Updated )

Software used for controlling and data logging lab equipment.

istharbprobjprofile(input)
function response = istharbprobjprofile(input)
% ISTHARBPROBJPROFILE checks that the supplied profile is valid

% checks the number of arguments
error(nargchk(1, 1, nargin))

% if it was a cell array, recursively call this
if iscell(input)
    % call this function recursively
    response = cellfun(@istharbprobjprofile, 'UniformOutput', 'false');
    
else
    % it must be 'A' or 'B' only
    response = isequal(input, 'A') || isequal(input, 'B');
end

Contact us