Problem in running python function from MATLAB console
Hello
I am new to python but extensive users of MATLAB. I wish to run Python function from MATLAB command prompt, so that the derived output can be utilized in further processing in MATLAB. I am trying to run this function available in this link. I have installed numba and numpy via cmd. As given in different tutorials, I have added my python path to MATLAB, using pyenv command. Then, I tried to call the function using below script for desired values as below:
[Twb] = py.wetbulb_dj08_spedup.WetBulb(25.,100000.,0.015,0),[0]
However, I am getting the following error:
Python Error: IndexError: list index out of range
Kindly help me in this regard. Also, if I wish to run for the time series array, how to define them from the MATLAB console. Do I need to define these vectors using py.numpy.array(A), where A is my time series array? Kindly help.
I am using MATLAB2024b.Hello
I am new to python but extensive users of MATLAB. I wish to run Python function from MATLAB command prompt, so that the derived output can be utilized in further processing in MATLAB. I am trying to run this function available in this link. I have installed numba and numpy via cmd. As given in different tutorials, I have added my python path to MATLAB, using pyenv command. Then, I tried to call the function using below script for desired values as below:
[Twb] = py.wetbulb_dj08_spedup.WetBulb(25.,100000.,0.015,0),[0]
However, I am getting the following error:
Python Error: IndexError: list index out of range
Kindly help me in this regard. Also, if I wish to run for the time series array, how to define them from the MATLAB console. Do I need to define these vectors using py.numpy.array(A), where A is my time series array? Kindly help.
I am using MATLAB2024b. Hello
I am new to python but extensive users of MATLAB. I wish to run Python function from MATLAB command prompt, so that the derived output can be utilized in further processing in MATLAB. I am trying to run this function available in this link. I have installed numba and numpy via cmd. As given in different tutorials, I have added my python path to MATLAB, using pyenv command. Then, I tried to call the function using below script for desired values as below:
[Twb] = py.wetbulb_dj08_spedup.WetBulb(25.,100000.,0.015,0),[0]
However, I am getting the following error:
Python Error: IndexError: list index out of range
Kindly help me in this regard. Also, if I wish to run for the time series array, how to define them from the MATLAB console. Do I need to define these vectors using py.numpy.array(A), where A is my time series array? Kindly help.
I am using MATLAB2024b. matlab – python, arrays, function MATLAB Answers — New Questions