diff() - what if multiple or no dependent variables are specified?
quantity.Discrete.diff(diffGridName, k) does some kind of derivative w.r.t. the dependent variable specified by diffGridName. In the arguments block, the following is stated
diffGridName (1,1) string = obj(1).gridName
I am not happy with this line, since (1,1) demands a scalar value, but obj(1).gridName might by a string-array of dimension (:, 1) or (:, 1)... I assume, that this might crash, since string-arrays might be concatenated to a scalar string by matlab. Hence, I suggest to specify the input parameter diffGridName as mandatory parameter and only allow scalar inputs.