|
135 | 135 | % Example: dim = currDataArray.appendSetDimension();
|
136 | 136 | %
|
137 | 137 | % See also nix.SetDimension.
|
138 |
| - |
| 138 | + |
139 | 139 | fname = strcat(obj.alias, '::appendSetDimension');
|
140 | 140 | h = nix_mx(fname, obj.nixhandle);
|
141 | 141 | r = nix.Utils.createEntity(h, @nix.SetDimension);
|
142 | 142 | end
|
143 | 143 |
|
144 |
| - function r = appendSampledDimension(obj, interval, label, unit, offset) |
| 144 | + function r = appendSampledDimension(obj, interval) |
145 | 145 | % Append a new SampledDimension as last entry to the list of
|
146 | 146 | % existing dimension descriptors of the invoking DataArray.
|
147 | 147 | %
|
148 | 148 | % Used to describe the regularly sampled dimension of data.
|
149 | 149 | %
|
150 | 150 | % interval (double): The sampling interval of the Dimension to create.
|
151 |
| - % label (string): The label used for the described axis, default empty. |
152 |
| - % unit (string): The unit of the axis, default empty. |
153 |
| - % offset (double): The offset of the dimension, default 0.0. |
154 | 151 | %
|
155 | 152 | % Returns: (nix.SampledDimension) The newly created SampledDimension.
|
156 | 153 | %
|
157 | 154 | % Example: stepSize = 5;
|
158 |
| - % label = "time"; |
159 |
| - % unit = "s"; |
160 |
| - % offset = 1.0; |
161 |
| - % dim = currDataArray.appendSampledDimension(stepSize, label, unit, offset); |
| 155 | + % |
| 156 | + % dim = currDataArray.appendSampledDimension(stepSize); |
162 | 157 | %
|
163 | 158 | % See also nix.SampledDimension.
|
164 |
| - if nargin < 3 |
165 |
| - label = ""; |
166 |
| - end |
167 |
| - if nargin < 4 |
168 |
| - unit = ""; |
169 |
| - end |
170 |
| - if nargin < 5 |
171 |
| - offset = 0.0; |
172 |
| - end |
| 159 | + |
173 | 160 | fname = strcat(obj.alias, '::appendSampledDimension');
|
174 |
| - h = nix_mx(fname, obj.nixhandle, interval, label, unit, offset); |
| 161 | + h = nix_mx(fname, obj.nixhandle, interval); |
175 | 162 | r = nix.Utils.createEntity(h, @nix.SampledDimension);
|
176 | 163 | end
|
177 | 164 |
|
178 |
| - function r = appendRangeDimension(obj, ticks, label, unit) |
| 165 | + function r = appendRangeDimension(obj, ticks) |
179 | 166 | % Append a new SampledDimension as last entry to the list of
|
180 | 167 | % existing dimension descriptors of the invoking DataArray.
|
181 | 168 | %
|
182 | 169 | % Used to describe the irregularly sampled dimension of data.
|
183 | 170 | %
|
184 | 171 | % ticks ([double]): The ticks of the RangeDimension.
|
185 |
| - % label (string): The label used to describe this dimension, default empty |
186 |
| - % unit (string): The unit of the ticks stored in this dimsension, default empty |
187 | 172 | %
|
188 | 173 | % Returns: (nix.RangeDimension) The newly created RangeDimension.
|
189 | 174 | %
|
190 | 175 | % Example: dim = currDataArray.appendRangeDimension([1 10 21 15]);
|
191 | 176 | %
|
192 | 177 | % See also nix.SampledDimension.
|
193 |
| - if nargin < 3 |
194 |
| - label = ""; |
195 |
| - end |
196 |
| - if nargin < 4 |
197 |
| - unit = ""; |
198 |
| - end |
| 178 | + |
199 | 179 | fname = strcat(obj.alias, '::appendRangeDimension');
|
200 |
| - h = nix_mx(fname, obj.nixhandle, ticks, label, unit); |
| 180 | + h = nix_mx(fname, obj.nixhandle, ticks); |
201 | 181 | r = nix.Utils.createEntity(h, @nix.RangeDimension);
|
202 | 182 | end
|
203 | 183 |
|
|
0 commit comments