%> <b> x=omp(y, D, 'maxiter', N)</b> stops the algorithm after N iterations.<br/>
%> <b> x=omp(y, D, 'tol', 10^-16)</b> runs the algoritm until the relative error is lower or equal to 10**-16. This is equivalent to <b>x=omp(y, D, 'tol', 10^-16, 'relerr', true)</b><br/>
%> <b> x=omp(y, D, 'maxiter', N, 'tol', 10^-16)</b> runs at most N iterations until the <code>tol</code> precision is reached.<br/>
%> <b>x=omp(y, D, 'tol', 10^-16, 'relerr', false)</b> runs the algoritm until the absolute error is lower or equal to 10**-16.<br/><br/>
%> <b>x=omp(y, D, 'tol', 10^-16, 'relerr', false)</b> runs the algorithm until the absolute error is lower or equal to 10**-16.<br/><br/>
%>
%>
%> @param y The vector to approximate by D*x.
...
...
@@ -20,7 +20,46 @@
%> @param 'verbose', false (optional) To disable the verbosity (this is the default option).
%>
%>
%>@return x the solution of y = D*x (according to the error).
%> @return x the solution of y = D*x (according to the error).