How to convert python scipt to matlab using any matlan converter or else
16 ビュー (過去 30 日間)
古いコメントを表示
Deal All,
I have the python script for deep learning segmentation as attached.
Anyone can help me how to run in matlab, or convert it into matlab script or else
0 件のコメント
回答 (1 件)
Steven Lord
2025 年 2 月 5 日 15:03
I would see if the "Call Python from MATLAB" section linked from this documentation page provides the functionality you need.
1 件のコメント
John D'Errico
2025 年 2 月 5 日 17:22
編集済み: John D'Errico
2025 年 2 月 5 日 18:29
Yes. It will be far better and easier (and safer too) to call the Python script from MATLAB, thus executing it in Python, than to try to find an automatic conversion utility that will successfully convert the code into MATLAB code.
If that conversion is absolutely necessary, then you could try one of the conversational AI tools around, some of which claim to be good at coding. At the same time, my experience with those tools is they frequently give totally incorrect answers, total garbage, even while what they write seems to look good on the surface. (In my experience, they have about a 50% hit rate.) And that would mean you would need to very carefully check any such conversion yourself.
参考
カテゴリ
Help Center および File Exchange で Call Python from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!