view m-toolbox/classes/@unit/setVals.m @ 52:daf4eab1a51e
database-connection-manager tip
Fix. Default password should be [] not an empty string
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Wed, 07 Dec 2011 17:29:47 +0100 (2011-12-07)
parents
f0afece42f48
children
line source
+ − % SETVALS set the vals field of the unit
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: SETVALS set the vals field of the unit.
+ − %
+ − % CALL: a = a.setVals(vals)
+ − %
+ − % VERSION: $Id: setVals.m,v 1.3 2011/04/08 08:56:35 hewitson Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − function u = setVals(u, v)
+ −
+ − if numel(v) ~= numel(u.vals)
+ − error('### Can''t change the number of elements in <vals>.');
+ − end
+ −
+ − u.vals = v;
+ −
+ − end