You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-16Lines changed: 15 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ Generally, this package is comprised of two aspects:
23
23
24
24
**Important**: The procedure to setup this package consists of the following steps.
25
25
26
-
By default, `MATLAB.jl` uses the MATLAB installation with the greatest version number. To specify that a specific MATLAB installation should be used, set the environment variable `MATLAB_HOME`.
26
+
By default, `MATLAB.jl` uses the MATLAB installation with the greatest version number. To specify that a specific MATLAB installation should be used, set the environment variable `MATLAB_ROOT`.
27
27
28
28
### Windows
29
29
@@ -34,12 +34,12 @@ By default, `MATLAB.jl` uses the MATLAB installation with the greatest version n
34
34
35
35
### Linux
36
36
37
-
1. Make sure ``matlab`` is in executable path.
37
+
1. Make sure ``matlab`` is in executable path.
38
+
39
+
2. Make sure ``csh`` is installed. (Note: MATLAB for Linux relies on ``csh`` to open an engine session.)
38
40
39
-
2. Make sure ``csh`` is installed. (Note: MATLAB for Linux relies on ``csh`` to open an engine session.)
40
-
41
41
To install ``csh`` in Debian/Ubuntu/Linux Mint, you may type in the following command in terminal:
42
-
42
+
43
43
```bash
44
44
sudo apt-get install csh
45
45
```
@@ -66,7 +66,7 @@ One can use the function ``mxarray`` to create MATLAB variables (of type ``MxArr
66
66
67
67
```julia
68
68
mxarray(Float64, n) # creates an n-by-1 MATLAB zero array of double valued type
69
-
mxarray(Int32, m, n) # creates an m-by-n MATLAB zero array of int32 valued type
69
+
mxarray(Int32, m, n) # creates an m-by-n MATLAB zero array of int32 valued type
70
70
mxarray(Bool, m, n) # creates a MATLAB logical array of size m-by-n
71
71
72
72
mxarray(Float64, (n1, n2, n3)) # creates a MATLAB array of size n1-by-n2-by-n3
@@ -126,7 +126,7 @@ You may access attributes and data of a MATLAB variable through the functions pr
126
126
```julia
127
127
# suppose x is of type MxArray
128
128
nrows(x) # returns number of rows in x
129
-
ncols(x) # returns number of columns in x
129
+
ncols(x) # returns number of columns in x
130
130
nelems(x) # returns number of elements in x
131
131
ndims(x) # returns number of dimensions in x
132
132
size(x) # returns the size of x as a tuple
@@ -198,7 +198,7 @@ read_matfile(filename) # returns a dictionary that maps each variable name
198
198
write_matfile(filename; name1=v1, name2=v2, ...) # writes all variables given in the
199
199
# keyword argument list to a MAT file
200
200
```
201
-
Both ``read_matfile`` and ``write_matfile`` will close the MAT file handle before returning.
201
+
Both ``read_matfile`` and ``write_matfile`` will close the MAT file handle before returning.
0 commit comments