chess - how to communicate with uci protocol using matlab -
i'm looking method communicate chess engine uci protocol using matlab. chess engine rybka , exe file. when run rybka.exe, can communicate via dos command prompt want via matlab. think have use streampipe , stdin , stdout don't know how use it. i found code in python , works fine i'm looking matlab version: import subprocess, time engine = subprocess.popen( 'a.exe', universal_newlines=true, stdin=subprocess.pipe, stdout=subprocess.pipe, ) def put(command): print('\nyou:\n\t'+command) engine.stdin.write(command+'\n') def get(): # using 'isready' command (engine has answer 'readyok') # indicate current last line of stdout engine.stdin.write('isready\n') print('\nengine:') while true: text = engine.stdout.readline().strip() if text == 'readyok': break if text !='': print('\t'+text) if it...