Skip to content

Commit 9dcee2a

Browse files
committed
doc
1 parent 80fbfe3 commit 9dcee2a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Readme.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,23 @@ The NetCDF4 functions also work with GNU Octave when octave-netcdf is installed.
5656
```matlab
5757
ncvariables(filename)
5858
```
59+
60+
## General utilities
61+
62+
* check if a file exists, and is a file (not a folder). Works with very old Matlab and Octave using fallback.
63+
64+
```matlab
65+
is_file(filename)
66+
```
67+
68+
* Check if running on GNU Octave
69+
70+
```matlab
71+
isoctave()
72+
```
73+
74+
* expand a leading tilde to the current user home directory
75+
76+
```matlab
77+
expanduser(path)
78+
```

0 commit comments

Comments
 (0)