Closed krober10nd closed 3 years ago
perhaps check if the length of max_el
or the like is greater than 3 then a semi-colon should be present otherwise it throws a warning?
In general the way we handle depth range input is very tricky to understand. I always need to go back and carefully interrogate the meaning of the signs and the order. May need modification of the kwarg to be more intuitive
max_el{1} = {20e3, 'mindepth',0,'maxdepth',inf}; max_el{2} = {30,'mindepth',-inf,'maxdepth,0};
or can be just max_el = [20e3 30] with mindepth being -inf and maxdepth being inf by default.
So then we detect cells instead of size of array
I would prefer the former as its explicit what the values are to the user
Ah yeah sorry I meant user can either choose to put max_ele = 20e3 (a scalar); or can use a cell in which each entry should be a cell as I wrote
Yes that’s what I understood too
Depth-based bound enforcement of criteria is functioning but very tricky
This produces
max_el = [2e3 0, -inf,... 30, inf, 0]; % Maxmimum element size. for param = max_el' mx = param(1) dp1 = param(2) dp2 = param(3) end
mx =
dp1 =
dp2 =
-Inf