comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/@mirdesign/get.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 varargout = get(a,varargin)
2 % GET Get properties from the MIRdesign object and return the value
3
4 if ischar(varargin{1})
5 switch varargin{1}
6 case 'Method'
7 varargout = {a.method};
8 return
9 case 'File'
10 varargout = {a.file};
11 return
12 case 'FrameLength'
13 if isstruct(a.frame)
14 varargout = {a.frame.length.val};
15 else
16 varargout = {[]};
17 end
18 return
19 case 'FrameHop'
20 if isstruct(a.frame)
21 varargout = {a.frame.hop.val};
22 else
23 varargout = {[]};
24 end
25 return
26 case 'FrameLengthUnit'
27 if isstruct(a.frame)
28 varargout = {a.frame.length.unit};
29 else
30 varargout = {[]};
31 end
32 return
33 case 'FrameHopUnit'
34 if isstruct(a.frame)
35 varargout = {a.frame.hop.unit};
36 else
37 varargout = {[]};
38 end
39 return
40 case 'FrameDontChunk'
41 if isstruct(a.frame)
42 varargout = {a.frame.dontchunk};
43 else
44 varargout = {[]};
45 end
46 return
47 case 'Segment'
48 varargout = {a.segment};
49 return
50 case 'ChunkDecomposed'
51 varargout = {a.chunkdecomposed};
52 return
53 case 'Size'
54 varargout = {a.size};
55 return
56 case 'Type'
57 varargout = {a.type};
58 return
59 case 'Chunk'
60 varargout = {a.chunk};
61 return
62 case 'Eval'
63 varargout = {a.eval};
64 return
65 case 'Argin'
66 varargout = {a.argin};
67 return
68 case 'VarArgin'
69 varargout = {a.varargin};
70 return
71 case 'Specif'
72 varargout = {a.specif};
73 return
74 case 'InterChunk'
75 varargout = {a.interchunk};
76 return
77 case 'AcrossChunks'
78 varargout = {a.acrosschunks};
79 return
80 case 'Option'
81 varargout = {a.option};
82 return
83 case 'PostOption'
84 varargout = {a.postoption};
85 return
86 case 'NoChunk'
87 varargout = {a.nochunk};
88 return
89 case 'Ready'
90 varargout = {a.ready};
91 return
92 case 'Struct'
93 varargout = {a.struct};
94 return
95 case 'Stored'
96 varargout = {a.stored};
97 return
98 case 'Index'
99 varargout = {a.index};
100 return
101 case 'TmpFile'
102 varargout = {a.tmpfile};
103 return
104 case 'TmpOf'
105 varargout = {a.tmpof};
106 return
107 case 'Ascending'
108 varargout = {a.ascending};
109 return
110 case 'SeparateChannels'
111 varargout = {a.separate};
112 return
113 case 'Channel'
114 varargout = {a.channel};
115 return
116 end
117 end
118
119 prop.type = 'String';
120 prop.position = 2;
121 prop.default = '';
122 option.prop = prop;
123 specif.option = option;
124 varargout = mirfunction(@get,a,varargin,nargout,specif,@init,@main);
125
126 function [x type] = init(x,option)
127 type = '';
128
129 function val = main(a,option,postoption)
130 val = get(a,option.prop);