Skip to content

Commit 3c76c00

Browse files
v0.3.3
1 parent 3784b4d commit 3c76c00

27 files changed

Lines changed: 901 additions & 45 deletions

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.2.0
3+
### Nelson 0.3.3.0
44

55
This is an pre-release of Nelson.
66

en/SUMMARY.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
* [varlock](./memory_manager/varlock.md)
9393
* [varunlock](./memory_manager/varunlock.md)
9494
* [who](./memory_manager/who.md)
95+
* [whos](./memory_manager/whos.md)
9596

9697

9798
* [modules_manager](./modules_manager/README.md)
@@ -409,18 +410,31 @@
409410
* [fsize](./stream_manager/fsize.md)
410411
* [ftell](./stream_manager/ftell.md)
411412
* [fwrite](./stream_manager/fwrite.md)
413+
* [load](./stream_manager/load.md)
414+
* [save](./stream_manager/save.md)
412415

413416

414417
* [hdf5](./hdf5/README.md)
415418
* [h5create](./hdf5/h5create.md)
416419
* [h5dump](./hdf5/h5dump.md)
417-
* [h5load](./hdf5/h5load.md)
418420
* [h5ls](./hdf5/h5ls.md)
419421
* [h5read](./hdf5/h5read.md)
420422
* [h5readatt](./hdf5/h5readatt.md)
421-
* [h5save](./hdf5/h5save.md)
422423
* [h5write](./hdf5/h5write.md)
423424
* [h5writeatt](./hdf5/h5writeatt.md)
425+
* [isnh5file](./hdf5/isnh5file.md)
426+
* [loadnh5](./hdf5/loadnh5.md)
427+
* [savenh5](./hdf5/savenh5.md)
428+
* [whonh5](./hdf5/whonh5.md)
429+
* [whosnh5](./hdf5/whosnh5.md)
430+
431+
432+
* [matio](./matio/README.md)
433+
* [ismatfile](./matio/ismatfile.md)
434+
* [loadmat](./matio/loadmat.md)
435+
* [savemat](./matio/savemat.md)
436+
* [whomat](./matio/whomat.md)
437+
* [whosmat](./matio/whosmat.md)
424438

425439

426440
* [json](./json/README.md)

en/changelogs/CHANGELOG.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
1-
## 0.3.2 (2019-02-24)
1+
# 0.3.3 (2019-03-21)
2+
3+
Features:
4+
---------
5+
6+
* load, save MAT-files:
7+
8+
- load overloads loadnh5, loadmat functions.
9+
- save overloads savenh5, savemat functions.
10+
- .mat file extension support added: data formatted (Nelson workspace).
11+
- .mat file association on Windows. load MAT file as data formatted for Nelson.
12+
- loadmat: load mat-file into Nelson's workspace
13+
- savemat: save Nelson's workspace to .mat file.
14+
- rename h5save to savenh5, h5load to loadnh5
15+
16+
* whos: list variables with sizes and types.
17+
18+
- whosmat: list variables in an valid .mat file with sizes and types.
19+
- whosnh5: list variables in an valid .nh5 file with sizes and types.
20+
21+
* extends who to manage '-file' option.
22+
23+
- whomat: list variables in an valid .mat file.
24+
- whonh5: list variables in an valid .nh5 file.
25+
26+
* ismatfile: check if a file is a valid .mat file.
227

28+
* isnh5file: check if a file is a valid .nh5 file.
29+
30+
31+
Compilation:
32+
------------
33+
34+
* MATIO 1.5.13
35+
36+
Thanks to MAT file I/O library (MATIO) to provide an easy support for MAT-file.
37+
38+
* BOOST 1.69 (Windows)
39+
40+
* CMake 3.14 (Windows)
41+
42+
43+
## 0.3.2 (2019-02-24)
344

445
Features:
546
---------

en/hdf5/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ 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.
1413
* [h5ls](h5ls.md) - List the content of an HDF5 file.
1514
* [h5read](h5read.md) - Read HDF5 data set.
1615
* [h5readatt](h5readatt.md) - Read HDF5 attribute.
17-
* [h5save](h5save.md) - save workspace variables to .nh5 file
1816
* [h5write](h5write.md) - Writes HDF5 data set.
1917
* [h5writeatt](h5writeatt.md) - Writes HDF5 attribute.
18+
* [isnh5file](isnh5file.md) - Checks if filename a valid .nh5 file
19+
* [loadnh5](loadnh5.md) - load data from .nh5 file into Nelson's workspace.
20+
* [savenh5](savenh5.md) - save workspace variables to .nh5 file
21+
* [whonh5](whonh5.md) - List variables in an valid .nh5 file.
22+
* [whosnh5](whosnh5.md) - List variables in an valid .nh5 file with sizes and types.
2023

2124

2225

en/hdf5/SUMMARY.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
* [hdf5](README.md)
22
* [h5create](h5create.md)
33
* [h5dump](h5dump.md)
4-
* [h5load](h5load.md)
54
* [h5ls](h5ls.md)
65
* [h5read](h5read.md)
76
* [h5readatt](h5readatt.md)
8-
* [h5save](h5save.md)
97
* [h5write](h5write.md)
108
* [h5writeatt](h5writeatt.md)
9+
* [isnh5file](isnh5file.md)
10+
* [loadnh5](loadnh5.md)
11+
* [savenh5](savenh5.md)
12+
* [whonh5](whonh5.md)
13+
* [whosnh5](whosnh5.md)
1114

en/hdf5/isnh5file.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
2+
3+
# isnh5file
4+
5+
Checks if filename a valid .nh5 file
6+
7+
## Syntax
8+
9+
- tf = isnh5file(filename)
10+
11+
## Input argument
12+
13+
- filename - a string: .nh5 filename.
14+
15+
## Output argument
16+
17+
- tf - a logical: true if it is a valid .nh5 file.
18+
19+
## Description
20+
21+
22+
<p><b>isnh5file</b> checks if filename a valid .nh5 file.</p>
23+
24+
25+
## Example
26+
27+
```matlab
28+
A = ones(3, 4);
29+
savemat([tempdir(), '/example_isnh5.mat'], 'A')
30+
R = isnh5file([tempdir(), '/example_isnh5.mat'])
31+
h5save([tempdir(), '/example_isnh5.nh5'], 'A')
32+
R = isnh5file([tempdir(), '/example_isnh5.nh5'])
33+
```
34+
35+
## See also
36+
37+
[ismatfile](../matio/ismatfile.md).
38+
## History
39+
40+
|Version|Description|
41+
|------|------|
42+
|1.0.0|initial version|
43+
44+
45+
## Author
46+
47+
Allan CORNET
48+
49+
50+
Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11

22

3-
# h5load
3+
# loadnh5
44

5-
# load
6-
7-
load data form .nh5 file into Nelson's workspace.
5+
load data from .nh5 file into Nelson's workspace.
86

97
## Syntax
108

11-
- h5load(filename)
12-
- st = h5load(filename)
13-
- h5load(filename, var1, ..., varN)
14-
- st = h5load(filename, var1, ..., varN)
9+
- loadnh5(filename)
10+
- st = loadnh5(filename)
11+
- loadnh5(filename, var1, ..., varN)
12+
- st = loadnh5(filename, var1, ..., varN)
1513

1614
## Input argument
1715

@@ -25,7 +23,7 @@ load data form .nh5 file into Nelson's workspace.
2523
## Description
2624

2725

28-
<p><b>h5load</b> loads data from .nh5 file to Nelson's workspace.</p>
26+
<p><b>loadnh5</b> loads data from .nh5 file to Nelson's workspace.</p>
2927
<p>.nh5 file uses hdf5 file as container.</p>
3028

3129

@@ -34,23 +32,23 @@ load data form .nh5 file into Nelson's workspace.
3432
```matlab
3533
A = ones(3, 4);
3634
B = 'hello for open mat users';
37-
h5save([tempdir(), '/example_h5load.nh5'], 'A', 'B')
35+
savenh5([tempdir(), '/example_h5load.nh5'], 'A', 'B')
3836
clear;
39-
st = h5load([tempdir(), '/example_h5load.nh5']);
37+
st = loadnh5([tempdir(), '/example_h5load.nh5']);
4038
who
4139
st.A
4240
st.B
4341
clear
4442
who
45-
h5load([tempdir(), '/example_h5load.nh5']);
43+
loadnh5([tempdir(), '/example_h5load.nh5']);
4644
who
4745
A
4846
B
4947
```
5048

5149
## See also
5250

53-
[h5save](h5save.md), [h5read](h5read.md).
51+
[savenh5](savenh5.md), [h5read](h5read.md).
5452
## History
5553

5654
|Version|Description|
Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11

22

3-
# h5save
4-
5-
# save
3+
# savenh5
64

75
save workspace variables to .nh5 file
86

97
## Syntax
108

11-
- h5save(filename)
12-
- h5save(filename, var1, ..., varN)
13-
- h5save(filename, '-append', ...)
14-
- h5save(filename, '-nocompression', ...)
9+
- savenh5(filename)
10+
- savenh5(filename, var1, ..., varN)
11+
- savenh5(filename, '-append', ...)
12+
- savenh5(filename, '-nocompression', ...)
1513

1614
## Input argument
1715

@@ -23,7 +21,7 @@ save workspace variables to .nh5 file
2321
## Description
2422

2523

26-
<p><b>h5save</b> save workspace variables to .nh5 file.</p>
24+
<p><b>savenh5</b> save workspace variables to .nh5 file.</p>
2725
<p>.nh5 file uses hdf5 file as container.</p>
2826

2927

@@ -32,32 +30,32 @@ save workspace variables to .nh5 file
3230
```matlab
3331
A = ones(3, 4);
3432
B = 'hello for open mat users';
35-
h5save([tempdir(), '/example_h5load.nh5'], 'A', 'B')
33+
savenh5([tempdir(), '/example_h5load.nh5'], 'A', 'B')
3634
clear;
37-
st = h5load([tempdir(), '/example_h5load.nh5']);
35+
st = loadnh5([tempdir(), '/example_h5load.nh5']);
3836
who
3937
st.A
4038
st.B
4139
clear
4240
who
43-
h5load([tempdir(), '/example_h5load.nh5']);
41+
loadnh5([tempdir(), '/example_h5load.nh5']);
4442
who
4543
A
4644
B
4745
```
4846
append variables
4947
```matlab
5048
C = eye(3, 4);
51-
h5save([tempdir(), '/example_h5load.nh5'], 'C', '-append')
49+
savenh5([tempdir(), '/example_h5load.nh5'], 'C', '-append')
5250
clear;
53-
st = h5load([tempdir(), '/example_h5load.nh5']);
51+
st = loadnh5([tempdir(), '/example_h5load.nh5']);
5452
who
5553
st.A
5654
st.B
5755
st.C
5856
clear
5957
who
60-
h5load([tempdir(), '/example_h5load.nh5']);
58+
loadnh5([tempdir(), '/example_h5load.nh5']);
6159
who
6260
A
6361
B
@@ -66,15 +64,15 @@ C
6664
compression
6765
```matlab
6866
C = eye(1000, 1000);
69-
h5save([tempdir(), '/example_h5save_with_compression.nh5'], 'C')
70-
h5save([tempdir(), '/example_h5save_no_compression.nh5'], 'C', '-nocompression')
67+
savenh5([tempdir(), '/example_h5save_with_compression.nh5'], 'C')
68+
savenh5([tempdir(), '/example_h5save_no_compression.nh5'], 'C', '-nocompression')
7169
with_compression = dir([tempdir(), '/example_h5save_with_compression.nh5'])
7270
no_compression = dir([tempdir(), '/example_h5save_no_compression.nh5'])
7371
```
7472

7573
## See also
7674

77-
[h5load](h5load.md), [h5write](h5write.md).
75+
[loadnh5](loadnh5.md), [h5write](h5write.md).
7876
## History
7977

8078
|Version|Description|

en/hdf5/whonh5.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
3+
# whonh5
4+
5+
List variables in an valid .nh5 file.
6+
7+
## Syntax
8+
9+
- whonh5(filename)
10+
- ce = whonh5(filename)
11+
- whonh5(filename, var1, ..., varN)
12+
- ce = whonh5(filename, var1, ..., varN)
13+
14+
## Input argument
15+
16+
- filename - a string: .nh5 filename.
17+
- var1, ..., varN - string: Names of variables to inspect.
18+
19+
## Output argument
20+
21+
- ce - cell of strings with variables names.
22+
23+
## Description
24+
25+
26+
<p><b>whonh5</b> lists variables in an valid .nh5 file.</p>
27+
28+
29+
## Example
30+
31+
```matlab
32+
A = ones(3, 4);
33+
B = 'Nelson';
34+
C = sparse(true);
35+
D = sparse(3i);
36+
savenh5([tempdir(), '/example_whonh5.nh5'], 'A', 'B', 'C', 'D')
37+
whonh5([tempdir(), '/example_whonh5.nh5'])
38+
ce = whonh5([tempdir(), '/example_whonh5.nh5'])
39+
```
40+
41+
## See also
42+
43+
[whomat](../matio/whomat.md), [who](../memory_manager/who.md).
44+
## History
45+
46+
|Version|Description|
47+
|------|------|
48+
|1.0.0|initial version|
49+
50+
51+
## Author
52+
53+
Allan CORNET
54+
55+
56+

0 commit comments

Comments
 (0)