how do i run a pyhton script from matlab?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello, anyone knows how can i run the attached python script via matlab?
"def InitPar(d):
d.SdoWr(0x3004, 0x00, 0)
d.SdoWr(0x3000, 0x00, 0x1)
d.SdoWr(0x3000, 0x00, 0x82)
#------------------------------------------------------------------------------
if __name__ == '__main__':
from mc.dsa import *
import time
import os
time_sync = open("time_sync.txt", "w+")
time_sync.write(str(time.localtime()))
time_sync.close()
s_t=time.clock()
답변 (0개)
참고 항목
카테고리
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!