Skip to content

Commit 840a17b

Browse files
committed
shortname: compatible with older Matlab
1 parent ff9b9f5 commit 840a17b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

+stdlib/+fileio/windows_shortname.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99
%
1010

1111

12-
arguments (Input)
12+
arguments
1313
p (1,1) string
1414
end
15-
arguments (Output)
16-
short (1,1) string
17-
end
1815

1916
short = "";
2017

@@ -33,6 +30,8 @@
3330
warning('%s is not folder or file', p);
3431
end
3532

33+
short = string(short);
34+
3635
delete(fso);
3736

3837
end

0 commit comments

Comments
 (0)