Code covered by the BSD License  

Highlights from
CO2gui - lab control and automation

CO2gui - lab control and automation



06 Jan 2010 (Updated )

Software used for controlling and data logging lab equipment.

cellisa(input, possibleClass)
function response = cellisa(input, possibleClass)
% CELLISA works exactly the same as isa but with cell arrays

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

% checks its a cell array
if ~iscell(input)
    % errors
    error('Input must be a cell array.')
elseif ~isstring(class)
    % errors
    error('Class must be a string.')

% checks the cell array
response = cellfun('isclass', input, possibleClass);

Contact us