Define all-missing get output #39

Closed
opened 2026-07-12 16:04:28 +00:00 by UserCurt · 1 comment
UserCurt commented 2026-07-12 16:04:28 +00:00 (Migrated from codeberg.org)

When mpath.get is passed in solely missing values, shape is not preserved

data = struct();
paths = mpath.Pointer(repmat(missing,2,2));

result = mpath.get(data, paths);
class(result) % missing
size(result)  % 0×0

result = mpath.get(data, paths, UniformOutput=false);
result % 2x2 cell array each containing 0×0 missing

It is not settled the expected behavior when the path is missing.

When `mpath.get` is passed in solely missing values, shape is not preserved ```matlab data = struct(); paths = mpath.Pointer(repmat(missing,2,2)); result = mpath.get(data, paths); class(result) % missing size(result) % 0×0 result = mpath.get(data, paths, UniformOutput=false); result % 2x2 cell array each containing 0×0 missing ``` It is not settled the expected behavior when the path is missing.
UserCurt commented 2026-07-15 13:33:45 +00:00 (Migrated from codeberg.org)

Fixed in 5094101.

Fixed in `5094101`.
Sign in to join this conversation.
No description provided.