Skip to content

Commit cc8e468

Browse files
update examples
1 parent 445a011 commit cc8e468

428 files changed

Lines changed: 615 additions & 2091 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

en/GPL2.md

Lines changed: 0 additions & 264 deletions
This file was deleted.

en/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ Try it !
1111

1212
* * *
1313

14-
* [Changelog](changelog.md)
15-
* [Nelson license](license.md)
14+
15+

en/assert_functions/assert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Raises an error if x is false. Raises an error if x is not a logical.
2929

3030
## Example
3131

32-
```Nelson
32+
```matlab
3333
assert(4 == 3, _('error for comparaison.'))
3434
```
3535

en/assert_functions/assert_checkerror.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ If the command does not raise the expected error message, then assert_checkerror
2626

2727
## Examples
2828

29-
```Nelson
29+
```matlab
3030
assert_checkerror('cos', _('Wrong number of input arguments.'));
3131
```
32-
```Nelson
32+
```matlab
3333
assert_checkerror('cos', _('Wrong error message.'));
3434
```
3535

en/assert_functions/assert_isapprox.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ isapprox
3535

3636
## Examples
3737

38-
```Nelson
38+
```matlab
3939
assert_isapprox(1.23456, 1.23457, 1e-5)
4040
```
41-
```Nelson
41+
```matlab
4242
assert_isapprox(1.23456, 1.23457, 1e-6)
4343
```
44-
```Nelson
44+
```matlab
4545
[r, msg] =assert_isapprox(1.23456, 1.23457, 1e-6)
4646
assert_isfalse(r);
4747
assert_isequal(msg, _('Assertion failed: expected and computed values are too different.'));

en/assert_functions/assert_isequal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@ Bibliography
3434

3535
## Examples
3636

37-
```Nelson
37+
```matlab
3838
A = eye(3, 3);
3939
assert_isequal(A, A)
4040
```
41-
```Nelson
41+
```matlab
4242
A = eye(3, 3);
4343
B = single(A);
4444
assert_isequal(A, B)
4545
```
46-
```Nelson
46+
```matlab
4747
A = NaN;
4848
B = A;
4949
assert_isequal(A, B)

en/assert_functions/assert_isfalse.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ Raises an error if x is true. Raises an error if x is not a logical.
2929

3030
## Examples
3131

32-
```Nelson
32+
```matlab
3333
assert_isfalse(3 ~= 4)
3434
```
35-
```Nelson
35+
```matlab
3636
assert_isfalse(3 == 4)
3737
```
38-
```Nelson
38+
```matlab
3939
r = assert_isfalse(false)
4040
```
41-
```Nelson
41+
```matlab
4242
[r, msg] = assert_isfalse(false)
4343
```
44-
```Nelson
44+
```matlab
4545
[r, msg] = assert_isfalse(3 == 3, 'your error message.')
4646
```
4747

en/assert_functions/assert_istrue.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,19 @@ Raises an error if x is false. Raises an error if x is not a logical.
2929

3030
## Examples
3131

32-
```Nelson
32+
```matlab
3333
assert_istrue(3 == 3)
3434
```
35-
```Nelson
35+
```matlab
3636
assert_istrue(3 == 4)
3737
```
38-
```Nelson
38+
```matlab
3939
r = assert_istrue(false)
4040
```
41-
```Nelson
41+
```matlab
4242
[r, msg] = assert_istrue(false)
4343
```
44-
```Nelson
44+
```matlab
4545
[r, msg] = assert_istrue(3 == 4, 'your error message.')
4646
```
4747

en/audio/audiodevinfo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Get audio devices information.
3939

4040
## Example
4141

42-
```Nelson
42+
```matlab
4343
info = audiodevinfo()
4444
OUTPUT_DEVICE = 0;
4545
INPUT_DEVICE = 1;

0 commit comments

Comments
 (0)