calling python function from Matlab

4 views (last 30 days)
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','lsq')
But I have problem in defining None for the center value. Any suggestion ?

Sign in to comment.

Accepted Answer

Mohammad Sami
Mohammad Sami on 15 Jul 2020
Moved to answer
According to the docs, a missing string value will translate to none in python.
s = string(missing);,'lsq',s)

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!