Skip to content

Commit 3784b4d

Browse files
v0.3.2
1 parent 08c4079 commit 3784b4d

11 files changed

Lines changed: 216 additions & 3 deletions

File tree

en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![banner](banner_homepage.png)
22

3-
### Nelson 0.3.1.0
3+
### Nelson 0.3.2.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,9 +414,11 @@
414414
* [hdf5](./hdf5/README.md)
415415
* [h5create](./hdf5/h5create.md)
416416
* [h5dump](./hdf5/h5dump.md)
417+
* [h5load](./hdf5/h5load.md)
417418
* [h5ls](./hdf5/h5ls.md)
418419
* [h5read](./hdf5/h5read.md)
419420
* [h5readatt](./hdf5/h5readatt.md)
421+
* [h5save](./hdf5/h5save.md)
420422
* [h5write](./hdf5/h5write.md)
421423
* [h5writeatt](./hdf5/h5writeatt.md)
422424

en/changelogs/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
## 0.3.2 (2019-02-24)
2+
3+
4+
Features:
5+
---------
6+
7+
* h5save: save Nelson's workspace to .nh5 file.
8+
9+
* h5load: load data form .nh5 file into Nelson's workspace.
10+
11+
* save, load alias on h5save and h5load.
12+
13+
* .nh5 file extension support added: data formatted (Nelson workspace).
14+
15+
* .nh5 file association on Windows. load data formatted for Nelson.
16+
17+
18+
Compilation:
19+
---------
20+
21+
* Qt 5.12.1 on Windows
22+
23+
* fix some 32 bit Warnings.
24+
25+
126
## 0.3.1 (2019-01-26)
227

328

en/engine/executable.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Executables to start Nelson software.
1717
- --help - help about program options.
1818
- --version - Return Nelson version.
1919
- --open - opens files arg2 ... argN must be valid/existing filenames.
20+
- --mat - load files arg2 ... argN must be valid/existing .nh5 or .mat filenames.
2021
- --nostartup - disable the main Nelson script file executed at startup.
2122
- --nouserstartup - disable the user script file executed at startup after the main startup file.
2223
- --language lang - If this option is present it fixes the user language. Currently, lang can be: fr_FR en_US.

en/hdf5/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ Hierarchical Data Format
1010

1111
* [h5create](h5create.md) - Creates a data set.
1212
* [h5dump](h5dump.md) - dump the content of hdf5 file as text.
13+
* [h5load](h5load.md) - load data form .nh5 file into Nelson's workspace.
1314
* [h5ls](h5ls.md) - List the content of an HDF5 file.
1415
* [h5read](h5read.md) - Read HDF5 data set.
1516
* [h5readatt](h5readatt.md) - Read HDF5 attribute.
17+
* [h5save](h5save.md) - save workspace variables to .nh5 file
1618
* [h5write](h5write.md) - Writes HDF5 data set.
1719
* [h5writeatt](h5writeatt.md) - Writes HDF5 attribute.
1820

en/hdf5/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
* [hdf5](README.md)
22
* [h5create](h5create.md)
33
* [h5dump](h5dump.md)
4+
* [h5load](h5load.md)
45
* [h5ls](h5ls.md)
56
* [h5read](h5read.md)
67
* [h5readatt](h5readatt.md)
8+
* [h5save](h5save.md)
79
* [h5write](h5write.md)
810
* [h5writeatt](h5writeatt.md)
911

en/hdf5/h5load.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
2+
3+
# h5load
4+
5+
# load
6+
7+
load data form .nh5 file into Nelson's workspace.
8+
9+
## Syntax
10+
11+
- h5load(filename)
12+
- st = h5load(filename)
13+
- h5load(filename, var1, ..., varN)
14+
- st = h5load(filename, var1, ..., varN)
15+
16+
## Input argument
17+
18+
- filename - a string: .nh5 filename.
19+
- var1, ..., varN - string: Names of variables to load into Nelson's workspace.
20+
21+
## Output argument
22+
23+
- st - a structure with variables name as fieldnames.
24+
25+
## Description
26+
27+
28+
<p><b>h5load</b> loads data from .nh5 file to Nelson's workspace.</p>
29+
<p>.nh5 file uses hdf5 file as container.</p>
30+
31+
32+
## Example
33+
34+
```matlab
35+
A = ones(3, 4);
36+
B = 'hello for open mat users';
37+
h5save([tempdir(), '/example_h5load.nh5'], 'A', 'B')
38+
clear;
39+
st = h5load([tempdir(), '/example_h5load.nh5']);
40+
who
41+
st.A
42+
st.B
43+
clear
44+
who
45+
h5load([tempdir(), '/example_h5load.nh5']);
46+
who
47+
A
48+
B
49+
```
50+
51+
## See also
52+
53+
[h5save](h5save.md), [h5read](h5read.md).
54+
## History
55+
56+
|Version|Description|
57+
|------|------|
58+
|1.0.0|initial version|
59+
60+
61+
## Author
62+
63+
Allan CORNET
64+
65+
66+

en/hdf5/h5read.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Read HDF5 data set.
2626
## Example
2727

2828
```matlab
29-
5_directory = [modulepath('hdf5'), '/tests/h5'];
29+
h5_directory = [modulepath('hdf5'), '/tests/h5'];
3030
double_data = [h5_directory, '/h5ex_t_float.h5'];
3131
R = h5read(double_data,'/DS1')
3232
```

en/hdf5/h5save.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
2+
3+
# h5save
4+
5+
# save
6+
7+
save workspace variables to .nh5 file
8+
9+
## Syntax
10+
11+
- h5save(filename)
12+
- h5save(filename, var1, ..., varN)
13+
- h5save(filename, '-append', ...)
14+
- h5save(filename, '-nocompression', ...)
15+
16+
## Input argument
17+
18+
- filename - a string: .nh5 filename.
19+
- var1, ..., varN - string: Names of variables to save from Nelson's workspace.
20+
- '-append' - append variables to an existing .nh5 file.
21+
- '-nocompression' - disable .nh5 file compression.
22+
23+
## Description
24+
25+
26+
<p><b>h5save</b> save workspace variables to .nh5 file.</p>
27+
<p>.nh5 file uses hdf5 file as container.</p>
28+
29+
30+
## Examples
31+
32+
```matlab
33+
A = ones(3, 4);
34+
B = 'hello for open mat users';
35+
h5save([tempdir(), '/example_h5load.nh5'], 'A', 'B')
36+
clear;
37+
st = h5load([tempdir(), '/example_h5load.nh5']);
38+
who
39+
st.A
40+
st.B
41+
clear
42+
who
43+
h5load([tempdir(), '/example_h5load.nh5']);
44+
who
45+
A
46+
B
47+
```
48+
append variables
49+
```matlab
50+
C = eye(3, 4);
51+
h5save([tempdir(), '/example_h5load.nh5'], 'C', '-append')
52+
clear;
53+
st = h5load([tempdir(), '/example_h5load.nh5']);
54+
who
55+
st.A
56+
st.B
57+
st.C
58+
clear
59+
who
60+
h5load([tempdir(), '/example_h5load.nh5']);
61+
who
62+
A
63+
B
64+
C
65+
```
66+
compression
67+
```matlab
68+
C = eye(1000, 1000);
69+
h5save([tempdir(), '/example_h5save_with_compression.nh5'], 'C')
70+
h5save([tempdir(), '/example_h5save_no_compression.nh5'], 'C', '-nocompression')
71+
with_compression = dir([tempdir(), '/example_h5save_with_compression.nh5'])
72+
no_compression = dir([tempdir(), '/example_h5save_no_compression.nh5'])
73+
```
74+
75+
## See also
76+
77+
[h5load](h5load.md), [h5write](h5write.md).
78+
## History
79+
80+
|Version|Description|
81+
|------|------|
82+
|1.0.0|initial version|
83+
84+
85+
## Author
86+
87+
Allan CORNET
88+
89+
90+

fr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
![banner](banner_homepage.png)
22

3-
### Nelson 0.3.1.0
3+
### Nelson 0.3.2.0
44

55
Ceci est une version alpha de Nelson.
66

0 commit comments

Comments
 (0)