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