convert a py.str to a matlab string
33 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I used a python function which returns a py.str format and im not sure how to convert it to a matlab string so I can use matlab functions on it.
2 Commenti
Risposta accettata
Più risposte (1)
Al Danial
il 26 Mag 2022
For generic conversion of Python variables to MATLAB variables, try py2mat.m, and for the reverse (Python to MATLAB), mat2py.m.
These MATLAB items are supported: strings, char arrays, cell arrays, dense matrices, sparse matrices, datetimes. On the Python side: dicts, lists, sets, tuples, NumPy arrays, SciPy sparse arrays, datetimes.
0 Commenti
Vedere anche
Categorie
Scopri di più su Call Python from MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!