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 3309f17 commit a9a0453Copy full SHA for a9a0453
+stdlib/ncexists.m
@@ -18,15 +18,10 @@
18
ncinfo(file, variable);
19
exists = true;
20
catch e
21
- if stdlib.isoctave()
22
- disp(e)
23
- if strcmp(e.identifier, "Octave:undefined-function") || isempty(strfind(e.message, 'No such file or directory'))
24
- rethrow(e)
25
- end
26
- else
27
- if ~any(contains(e.identifier, ["MATLAB:imagesci:netcdf:badLocationString", "MATLAB:imagesci:netcdf:unknownLocation"]))
28
29
+ if ~strcmp(e.identifier, "MATLAB:imagesci:netcdf:badLocationString") && ...
+ ~strcmp(e.identifier, "MATLAB:imagesci:netcdf:unknownLocation")
+
+ rethrow(e)
30
end
31
32
0 commit comments