Mercurial > hg > camir-aes2014
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/nthoutput.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 = nthoutput(orig,varargin) | |
2 | |
3 nth.type = 'Integer'; | |
4 nth.default = 1; | |
5 nth.position = 2; | |
6 option.nth = nth; | |
7 specif.option = option; | |
8 | |
9 varargout = mirfunction(@nthoutput,orig,varargin,nargout,specif,@init,@main); | |
10 | |
11 | |
12 function [x type] = init(x,option) | |
13 type = mirtype(x); | |
14 type = type{option.nth}; | |
15 | |
16 | |
17 function y = main(x,option,postoption) | |
18 y = x{option.nth}; | |
19 %y = x{1}{option.nth}; |