필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Calling a python function in matlab

조회 수: 2 (최근 30일)
Wilhelm Rpprt
Wilhelm Rpprt 2020년 8월 17일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi Community
Because the Corona stuff, I was forced to relocate my research from laser experimenting and lab work to matlab. Ive never really used it and now face a problem that I cannot solve.
Initially I would like to translate a PythonScript to Matlab, but for me that is an inpossiblity. So the next approach would be to call a python function in matlab and return a value. In specific: I am rearranging an array of variable length (one dimensional) [ ExampleArray(x,1) ] to optimize a process I am working with.
Could someone help me perform the task? I need to be able to pass an Array(x,1) to my pythonFunction and use the created output Array again in matlab.
I would be very happy if you could help me to setup the syntax for for calling and using the python function, since I have zero clue how to do that.
Thank you very much in advance

답변 (1개)

Prabhanjan Mentla
Prabhanjan Mentla 2020년 8월 21일
Hi,
I would definitely encourage you to go through this link. You can find the code as well in the Related Resources Section of the link.
The above link will help you even with syntax and calling the python function and getting back the desired output from python script.
Make sure to see check this link as it may help after getting started.
Hope this helps.

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by