We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 86ced8e + 0d4dbe7 commit 727ee9cCopy full SHA for 727ee9c
1 file changed
code/internal/+openminds/+internal/+vocab/getSchemaName.m
@@ -24,14 +24,12 @@
24
end
25
26
C = struct2cell(typesVocab);
27
- S = [C{:}];
28
-
29
- allNames = {S.name};
30
+ allNames = cellfun(@(c) string(c.name), C);
31
isMatch = strcmpi(allNames, nameAlias);
32
33
if ~any(isMatch)
34
- allLabels = {S.label};
+ allLabels = cellfun(@(c) string(c.label), C);
35
isMatch = strcmpi(allLabels, nameAlias);
36
37
0 commit comments