Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirdesign/set.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function a = set(a,varargin) | |
2 % SET Set properties for the MIRdesign object | |
3 % and return the updated object | |
4 | |
5 propertyArgIn = varargin; | |
6 while length(propertyArgIn) >= 2, | |
7 prop = propertyArgIn{1}; | |
8 val = propertyArgIn{2}; | |
9 propertyArgIn = propertyArgIn(3:end); | |
10 switch prop | |
11 case 'Eval' | |
12 a.eval = val; | |
13 case 'File' | |
14 a.file = val; | |
15 case 'Sampling' | |
16 a.sampling = val; | |
17 case 'Size' | |
18 a.size = val; | |
19 case 'Chunk' | |
20 a.chunk = val; | |
21 case 'SamplesIn' | |
22 a.samplesin = val; | |
23 a.samplesout = val; | |
24 case 'SamplesOut' | |
25 a.samplesout = val; | |
26 case 'Frame' | |
27 a.frame = val; | |
28 case 'Segment' | |
29 a.segment = val; | |
30 case 'FrameDecomposition' | |
31 a.frame.decomposition = val; | |
32 case 'FrameLength' | |
33 a.frame.length.val = val; | |
34 case 'FrameHop' | |
35 a.frame.hop.val = val; | |
36 case 'FrameLengthUnit' | |
37 a.frame.length.unit = val; | |
38 case 'FrameHopUnit' | |
39 a.frame.hop.unit = val; | |
40 case 'FrameEval' | |
41 a.frame.eval = val; | |
42 case 'FrameDontChunk' | |
43 a.frame.dontchunk = val; | |
44 case 'Path' | |
45 a.path = val; | |
46 case 'Specif' | |
47 a.specif = val; | |
48 case 'InterChunk' | |
49 a.interchunk = val; | |
50 case 'AcrossChunks' | |
51 a.acrosschunks = val; | |
52 case 'NoChunk' | |
53 a.nochunk = val; | |
54 case 'Struct' | |
55 a.struct = val; | |
56 case 'Stored' | |
57 a.stored = val; | |
58 case 'Index' | |
59 a.index = val; | |
60 case 'TmpFile' | |
61 a.tmpfile = val; | |
62 case 'TmpOf' | |
63 a.tmpof = val; | |
64 case 'ChunkDecomposed' | |
65 a.chunkdecomposed = val; | |
66 case 'Argin' | |
67 a.argin = val; | |
68 case 'Option' | |
69 a.option = val; | |
70 case 'Overlap' | |
71 a.overlap = val; | |
72 case 'SeparateChannels' | |
73 a.separate = val; | |
74 case 'Channel' | |
75 a.channel = val; | |
76 otherwise | |
77 error(['Unknown MIRdesign property: ' prop]) | |
78 end | |
79 end |