Mentions légales du service

Skip to content
Snippets Groups Projects
Commit bf488ea2 authored by hhakim's avatar hhakim
Browse files

Replace optional key-value arguments by optional arguments in matfaust.lazylinop.eye.

parent 9475a753
Branches
Tags
No related merge requests found
......@@ -4,9 +4,13 @@ function EL = eye(m, varargin)
validK = @(k) isscalar(k) && 0 == k - floor(k);
addParameter(p, 'n', 'undefined', validK)
addOptional(p, 'n', 'undefined', validK)
addParameter(p, 'k', 0, validK)
addOptional(p, 'k', 0, validK)
%addParameter(p, 'n', 'undefined', validK)
%addParameter(p, 'k', 0, validK)
validDtype = @(dtype) any(strcmp(dtype, {'complex', 'double', 'single', 'undefined'}));
% TODO: use dtype
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment