Mercurial > hg > camir-aes2014
view 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 |
line wrap: on
line source
function varargout = nthoutput(orig,varargin) nth.type = 'Integer'; nth.default = 1; nth.position = 2; option.nth = nth; specif.option = option; varargout = mirfunction(@nthoutput,orig,varargin,nargout,specif,@init,@main); function [x type] = init(x,option) type = mirtype(x); type = type{option.nth}; function y = main(x,option,postoption) y = x{option.nth}; %y = x{1}{option.nth};