mirror of
https://github.com/davrot/pytutorial.git
synced 2025-04-25 00:26:04 +02:00
Update README.md
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
ef0cfa0260
commit
9dca2f7b7c
1 changed files with 2 additions and 0 deletions
|
@ -178,6 +178,7 @@ np.save("test_2.npy", a)
|
||||||
|
|
||||||
And under Matlab we load it:
|
And under Matlab we load it:
|
||||||
|
|
||||||
|
```matlab
|
||||||
>> a_np = py.numpy.load("test_2.npy");
|
>> a_np = py.numpy.load("test_2.npy");
|
||||||
>> a = double(a_np);
|
>> a = double(a_np);
|
||||||
>> whos
|
>> whos
|
||||||
|
@ -185,6 +186,7 @@ And under Matlab we load it:
|
||||||
|
|
||||||
a 100x10 8000 double
|
a 100x10 8000 double
|
||||||
a_np 1x1 8 py.numpy.ndarray
|
a_np 1x1 8 py.numpy.ndarray
|
||||||
|
```
|
||||||
|
|
||||||
## References
|
## References
|
||||||
* [Access Python Modules from MATLAB - Getting Started](https://de.mathworks.com/help/matlab/matlab_external/create-object-from-python-class.html)
|
* [Access Python Modules from MATLAB - Getting Started](https://de.mathworks.com/help/matlab/matlab_external/create-object-from-python-class.html)
|
||||||
|
|
Loading…
Add table
Reference in a new issue