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.

isavector(input)
function response = isavector(input)
% ISVECTOR returns if an input is a vector or not

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

% checks that exactly one of the dimensions is larger that 1, and that
% there are no zero dimensions
response = (sum(size(input) > 1) == 1) && all(size(input));

Contact us