Mercurial > octave-nkf
view scripts/@audioplayer/subsasgn.m @ 19510:e1f98e402a7e
New files - @audiorecorder and @audioplayer classes
* @audiorecorder: new files implementing methods for the audiorecorder class
* @audioplayer: new files implementing methods for the audioplayer class
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Wed, 11 Sep 2013 22:40:18 +0300 |
parents | |
children |
line wrap: on
line source
function value = subsasgn(player, idx, rhs) if (isempty (idx)) error ("audioplayer: missing index"); endif if (strcmp(idx(1).type, ".")) field = idx.subs; set(player, field, rhs); value = player; else error ("audioplayer: invalid subscript type"); endif endfunction