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

Mohammad Sami
Mohammad Sami 2020년 7월 15일
편집: Mohammad Sami 2020년 7월 15일
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)
Abhishek Shahi
Abhishek Shahi 2020년 7월 15일
Thanks , it works..

댓글을 달려면 로그인하십시오.

 채택된 답변

Mohammad Sami
Mohammad Sami 2020년 7월 15일

1 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

질문:

2020년 7월 15일

답변:

2020년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by