We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5360f9 commit 9169a40Copy full SHA for 9169a40
+stdlib/private/choose_method.m
@@ -1,6 +1,6 @@
1
function fun = choose_method(method, name, minVersion)
2
arguments
3
- method (1,:) string
+ method (1,:) string
4
name (1,1) string
5
minVersion {mustBeTextScalar} = ''
6
end
@@ -19,9 +19,12 @@
19
20
21
if has()
22
- fun = str2func("stdlib." + m + "." + name);
23
- f = functions(fun);
24
- if ~isempty(f.file) || isfield(f, 'opaqueType')
+ n = "stdlib." + m + "." + name;
+ fun = str2func(n);
+ % don't use functions() it's not for programmatic use and its behavior
25
+ % changed in R2025a
26
+ fp = which(n);
27
+ if ~isempty(fp)
28
return
29
30
0 commit comments