how to convert Python code to Matlab code?

Hi,
I am learning MATLAB
I would like to convert the Python code into MATLAB code. I tried some things but nothing seemed to be working. Can someone please suggest a good way to convert it.
TIA
regards,
Ganesh

댓글 수: 6

Rik
Rik 2019년 12월 9일
Since they are not interchangeable, the only way is to reimplement your function in Matlab. 'nothing works' is a too vague description to give you any more specific advice than that.
Guillaume
Guillaume 2019년 12월 9일
Note that you can call Python directly from matlab so there should be no need to convert anything.
As for the question, as Rik said, it's much too vague to answer. You don't tell us what code you're trying to convert and you don't tell use what you've tried.
Yulia M
Yulia M 2019년 12월 9일
Hi Guillaume,
I am trying to analyse this code in the below follwing link so I would like to have MATLAB code for the respective python code in the link provided. This is what I am trying to do. If you can suggest a way how I can do it, It will be of great help.
Regards,
Ganesh
Guillaume
Guillaume 2019년 12월 9일
It would be useful if you told us exactly what in this code is causing you problem. I only had a quick look but I didn't see any function that didn't have a direct equivalent in matlab. It's all made up of very basic functions.
Rik
Rik 2020년 1월 14일
Comment mistakenly posted as answer by Jatin Bisht:
My query is just the same
Guillaume
Guillaume 2020년 1월 14일
"My query is just the same"
In that case, our reply is just the same: "your query much too vague to answer. You don't tell us what code you're trying to convert and you don't tell us what you've tried."

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

답변 (0개)

카테고리

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

질문:

2019년 12월 9일

댓글:

2020년 1월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by