loadmat(filename)
st = loadmat(filename)
loadmat(filename, var1, ..., varN)
st = loadmat(filename, var1, ..., varN)
| Parameter | Description |
|---|---|
| filename | a string: .mat filename. |
| var1, ..., varN | string: Names of variables to load into Nelson's workspace. |
| Parameter | Description |
|---|---|
| st | a structure with variables name as fieldnames. |
loadmat loads data from .mat file to Nelson's workspace.
A = ones(3, 4);
B = 'hello for open mat users';
savemat([tempdir(), 'example_loadmat.mat'], 'A', 'B')
clear;
st = loadmat([tempdir(), 'example_loadmat.mat']);
who
st.A
st.B
clear
who
loadmat([tempdir(), 'example_loadmat.mat']);
who
A
B
| Version | Description |
|---|---|
| 1.0.0 | initial version |