Hi!
I installed python 2.7 and matlab, and then when I wrote pyversion in matlab, I get:
Undefined function or variable 'pyversion'.
How can I fix it?
I already tried:
- Install and uninstall several times Python and Matlab. - Check it if both versions of the programs are the same (64). - I put the paht than enviroment variable.
So, for now, I don't have more options.
¿Could you help me?.
Thanks!

 채택된 답변

Robert Snoeberger
Robert Snoeberger 2014년 10월 20일
편집: Robert Snoeberger 2014년 10월 20일

1 개 추천

Which version of MATLAB are you using? pyversion is available only in R2014b. You can verify the version with the version function:
>> version -release
ans =
2014b
>>

추가 답변 (1개)

Victor Salazar
Victor Salazar 2014년 10월 21일
편집: Victor Salazar 2014년 10월 21일

0 개 추천

Hi Robert,
Thank you very much.
That was the answer, it solve the issue. I was installed 2014a. With the other versions, 2014b, pyversion works!
Have a great day.

카테고리

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

태그

질문:

2014년 10월 20일

편집:

2014년 10월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by