Mercurial > hg > camir-ismir2012
comparison toolboxes/MIRtoolbox1.3.2/MIRToolbox/nthoutput.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:cc4b1211e677 |
---|---|
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}; |