Mercurial > octave-nkf
view test/@Snork/set.m @ 10594:4b421123fd17
__errplot__.m: Fix bug parsing errorbar style.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 30 Apr 2010 18:28:21 -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