comparison scripts/audio/@audiorecorder/subsasgn.m @ 19522:ee3ec3f02358

maint: moved @audiorecorder and @audioplayer folders inside the audio folder
author Vytautas Jančauskas <unaudio@gmail.com>
date Wed, 18 Sep 2013 00:16:28 +0300
parents scripts/@audiorecorder/subsasgn.m@e1f98e402a7e
children 8bb399569393
comparison
equal deleted inserted replaced
19521:480407a8d226 19522:ee3ec3f02358
1 function value = subsasgn(recorder, idx, rhs)
2 if (isempty (idx))
3 error ("audiorecorder: missing index");
4 endif
5 if (strcmp(idx(1).type, "."))
6 field = idx.subs;
7 set(recorder, field, rhs);
8 value = recorder;
9 else
10 error ("audiorecorder: invalid subscript type");
11 endif
12 endfunction