Mercurial > octave-nkf
view test/@Snork/set.m @ 12769:5a44c5f79638 stable
Added tag release-3-4-1 for changeset 901d466ee55a
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 23 Jun 2011 17:45:36 -0400 |
parents | f9ab19428cd8 |
children |
line wrap: on
line source
function [ s ] = set( s, varargin ) propArgs = varargin; while (length(propArgs) >= 2) propName = propArgs{1}; propValue = propArgs{2}; propArgs = propArgs(3:end); switch propName case 'gick' s.gick = propValue; otherwise error([propName, ' is not a valid Snork property']); end end end