calling python function from Matlab
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abhishek Shahi
le 15 Juil 2020
Réponse apportée : Mohammad Sami
le 15 Juil 2020
I have following python code line that I want to call from matlab
def circularize_image(IM, method="lsq", center=None):
I could sucessfully excecute for defining two variable IM and 'lsq'
py.abel.tools.circularize.circularize_image(IM,'lsq')
But I have problem in defining None for the center value. Any suggestion ?
2 commentaires
Mohammad Sami
le 15 Juil 2020
Modifié(e) : Mohammad Sami
le 15 Juil 2020
According to the docs, a missing string value will translate to none in python.
s = string(missing);
py.abel.tools.circularize.circularize_image(IM,'lsq',s)
Réponse acceptée
Mohammad Sami
le 15 Juil 2020
Moved to answer
According to the docs, a missing string value will translate to none in python.
s = string(missing);
py.abel.tools.circularize.circularize_image(IM,'lsq',s)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Call Python from MATLAB dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!