Borrar filtros
Borrar filtros

How to convert python __name__ = '__main__' into MATLAB ?

19 visualizaciones (últimos 30 días)
Md Shahidul Islam
Md Shahidul Islam el 24 de Jul. de 2021
Comentada: Yongjian Feng el 27 de Jul. de 2021
if __name__ == '__main__':
undistorb_images(None, None)
  2 comentarios
Md Shahidul Islam
Md Shahidul Islam el 24 de Jul. de 2021
Please someone help me.
Rik
Rik el 24 de Jul. de 2021
Have a read here and here. It will greatly improve your chances of getting an answer.

Iniciar sesión para comentar.

Respuestas (1)

Yongjian Feng
Yongjian Feng el 24 de Jul. de 2021
Not sure about what you really want.
For python code,
if __name__ == '__main__':
it means your python script is running as the main program by the python interpreter (as opposite to being imported by some other python scripts).
This is equivalent to a separate matlab script that calls the first matlab script.
  5 comentarios
Md Shahidul Islam
Md Shahidul Islam el 27 de Jul. de 2021
Thank you so much sir
Yongjian Feng
Yongjian Feng el 27 de Jul. de 2021
Accept the answer please if this fix the problem, then others know how to fix it.

Iniciar sesión para comentar.

Categorías

Más información sobre Call Python from MATLAB en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by