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.

cell2double(input)
function output = cell2double(input)
% CELL2DOUBLE works just like str2double, except on cell arrays

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

% only accepts cell arrays
if ~iscell(input)
    % only defined for cell arrays
    error('Input must be a cell array.')
end

% applies it
output = cellfun(@str2double, input);

Contact us