diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/toolboxes/MIRtoolbox1.3.2/MIRToolbox/nthoutput.m	Tue Feb 10 15:05:51 2015 +0000
@@ -0,0 +1,19 @@
+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};
\ No newline at end of file